Commit Graph

643 Commits

Author SHA1 Message Date
Kyle Blöm
d5787c99d3 Merge remote-tracking branch 'origin/master' 2017-01-30 13:52:04 -08:00
Kyle Blöm
2630f5e0ca added method parameters to docstrings 2017-01-30 13:49:48 -08:00
Kyle Blöm
23efba515c Changed list to frozenset 2017-01-30 13:49:48 -08:00
Kyle Blöm
a5c12b96f4 sorted imports 2017-01-30 13:49:48 -08:00
Kyle Blöm
0e0858f046 Fixed typo
Fixed what looks like a typo
2017-01-30 13:49:48 -08:00
Kyle Blöm
293954a5d8 Added new tests, new request logic, and handler file
Added new tests for alternate uses for alternate range request types.

Changed error handlnig for new request logic that simplifies the integration logic

Moved the error handler and the content range handler to their own handler file to prevent circular imports.
2017-01-30 13:46:13 -08:00
Kyle Blöm
afe12f2d9e Changed output to use a default_header dictionary and a ChainMap to unnecessary conditionals and simplified range parsing logic 2017-01-30 13:46:13 -08:00
Kyle Blöm
2e2840a031 fixed line to long notice 2017-01-30 13:46:13 -08:00
Kyle Blöm
4dff52de0e added Range request test cases 2017-01-30 13:46:13 -08:00
Kyle Blöm
3f23135a5f PEP8 format changes 2017-01-30 13:46:13 -08:00
Kyle Blöm
0d63ec38dd Added Range request options for static files 2017-01-30 13:46:13 -08:00
Raphael Deem
abe5d8b53b review updates 2017-01-30 13:46:13 -08:00
Raphael Deem
c808762540 combine logic from create_server() and run() 2017-01-30 13:46:13 -08:00
Raphael Deem
abfea2b568 fix async run 2017-01-30 13:46:13 -08:00
Jordan Pittier
ab9a393bdf Fix docs/config.md: the MYAPP_SETTINGS is not exported
If we don"t `export` the variable, it's not available in subcommand:

MYAPP_SETTINGS=/path/to/config_file; python3 -c "import os; os.environ['MYAPP_SETTINGS']"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python3.5/os.py", line 725, in __getitem__
    raise KeyError(key) from None
KeyError: 'MYAPP_SETTINGS'

The ';' is the culprit here.
2017-01-30 13:46:13 -08:00
Channel Cat
42efbb3b18 Updated password 2017-01-30 13:46:13 -08:00
Channel Cat
e5c6e0b6ce . 2017-01-30 13:46:13 -08:00
Channel Cat
078bf83aad Added route shorthands to blueprints 2017-01-30 13:46:13 -08:00
Channel Cat
33122930cb Fix flake8 2017-01-30 13:46:13 -08:00
Channel Cat
206e55a911 Restructured blueprint class
Blueprints currently queue functions to be called, which are simple, yet
hard to inspect.  These changes allow tools to be built that analyze
blueprints more easily.
2017-01-30 13:46:13 -08:00
Channel Cat
2a4c74619b Fix readthedocs includes 2017-01-30 13:46:13 -08:00
Kyle Blöm
f62c4b38b4 added method parameters to docstrings 2017-01-30 09:49:40 -08:00
Kyle Blöm
68b9700abf Changed list to frozenset 2017-01-30 09:49:04 -08:00
Kyle Blöm
c677dc22a8 sorted imports 2017-01-30 09:48:39 -08:00
Kyle Blöm
d88cf657e0 Fixed typo
Fixed what looks like a typo
2017-01-30 09:48:14 -08:00
Kyle Blöm
7c58269a63 Merge remote-tracking branch 'origin/master'
# Conflicts:
#	sanic/sanic.py
2017-01-30 09:37:55 -08:00
Kyle Blöm
bcd4546d58 Added new tests, new request logic, and handler file
Added new tests for alternate uses for alternate range request types.

Changed error handlnig for new request logic that simplifies the integration logic

Moved the error handler and the content range handler to their own handler file to prevent circular imports.
2017-01-30 09:31:49 -08:00
Kyle Blöm
60f36135b3 Changed output to use a default_header dictionary and a ChainMap to unnecessary conditionals and simplified range parsing logic 2017-01-30 09:25:59 -08:00
Kyle Blöm
c55821ad66 fixed line to long notice 2017-01-30 09:25:59 -08:00
Kyle Blöm
185c68ae6d added Range request test cases 2017-01-30 09:25:59 -08:00
Kyle Blöm
404b4f0634 PEP8 format changes 2017-01-30 09:25:59 -08:00
Kyle Blöm
853d41b281 Added Range request options for static files 2017-01-30 09:25:59 -08:00
Kyle Blöm
cedf1d0b00 Added new tests, new request logic, and handler file
Added new tests for alternate uses for alternate range request types.

Changed error handlnig for new request logic that simplifies the integration logic

Moved the error handler and the content range handler to their own handler file to prevent circular imports.
2017-01-30 09:13:43 -08:00
Eli Uriegas
6d18fb6bae Merge pull request #363 from r0fls/run-helper
Run helper
2017-01-30 05:51:50 -06:00
Eli Uriegas
eac26a4514 Merge pull request #372 from JordanP/fix_docs_config
Fix docs/config.md: the MYAPP_SETTINGS is not exported
2017-01-30 05:43:29 -06:00
Channel Cat
1649f30808 Updated password 2017-01-30 02:22:12 -08:00
Jordan Pittier
82680bf43f Fix docs/config.md: the MYAPP_SETTINGS is not exported
If we don"t `export` the variable, it's not available in subcommand:

MYAPP_SETTINGS=/path/to/config_file; python3 -c "import os; os.environ['MYAPP_SETTINGS']"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python3.5/os.py", line 725, in __getitem__
    raise KeyError(key) from None
KeyError: 'MYAPP_SETTINGS'

The ';' is the culprit here.
2017-01-30 10:39:02 +01:00
Raphael Deem
cfb5734b85 Merge pull request #371 from channelcat/blueprint-shorthand
Blueprint route shorthand
2017-01-29 23:23:47 -08:00
Channel Cat
b72d841619 . 2017-01-29 23:21:00 -08:00
Channel Cat
0ef39f35ae Added route shorthands to blueprints 2017-01-29 23:20:38 -08:00
Channel Cat
38d1ed76d2 Merge pull request #368 from channelcat/blueprint-clarity
Restructured blueprint class for clarity
2017-01-29 18:47:27 -08:00
Channel Cat
4c80cd185f Fix flake8 2017-01-29 17:44:46 -08:00
Channel Cat
629524af04 Restructured blueprint class
Blueprints currently queue functions to be called, which are simple, yet
hard to inspect.  These changes allow tools to be built that analyze
blueprints more easily.
2017-01-29 17:39:55 -08:00
Channel Cat
a245e54bd3 Merge pull request #367 from channelcat/fix-rtd-build
Fix readthedocs includes
2017-01-29 16:46:48 -08:00
Channel Cat
52e485cce9 Fix readthedocs includes 2017-01-29 16:46:16 -08:00
Channel Cat
02d374b65b Merge pull request #365 from channelcat/fix-rtd-build
Adding readthedocs file
2017-01-29 16:41:41 -08:00
Channel Cat
0de6bb0063 Adding readthedocs file 2017-01-29 16:40:36 -08:00
Channel Cat
9d6b379999 Merge pull request #364 from channelcat/fix-rtd-build
Fix readthedocs build
2017-01-29 16:38:29 -08:00
Channel Cat
c132c4e673 fix conflict part 2 2017-01-29 16:32:57 -08:00
Channel Cat
6962dcd66c fix conflict 2017-01-29 16:31:37 -08:00