Eli Uriegas
50243037eb
Merge pull request #222 from seemethere/add_py36_testing
...
Adds python36 to tox.ini and .travis.yml
2016-12-24 14:11:55 -08:00
Eli Uriegas
74f305cfb7
Adds python36 to tox.ini and .travis.yml
2016-12-24 14:06:53 -08:00
Eli Uriegas
75990fbaf4
Merge pull request #220 from kgantsov/master
...
Make golang performance test return JSON instead of string
2016-12-24 13:40:24 -08:00
cr0hn
cc982c5a61
Update response.py
...
Type check by isinstance
2016-12-24 15:24:25 +01:00
38elements
2d05243c4a
Refactor arguments of run function
2016-12-24 22:49:48 +09:00
Konstantin Hantsov
2f0a582aa7
Make golang performance test return JSON instead of string
2016-12-24 10:28:34 +01:00
Eli Uriegas
665881471d
Merge pull request #217 from cr0hn/patch-3
...
Upgraded Middlewares doc: Explain how to chain two (or more) middlewares
2016-12-23 22:31:03 -08:00
38elements
39211f8fbd
Refactor arguments of serve function
2016-12-24 11:40:07 +09:00
Raphael Deem
32ea45d403
allow overriding logging.basicConfig
2016-12-23 16:17:34 -08:00
Eli Uriegas
cd17a42234
Fix some verbage
2016-12-23 09:59:28 -08:00
Eli Uriegas
8e19b5938c
Merge pull request #216 from cr0hn/patch-2
...
Apply response Middleware always
2016-12-23 09:57:38 -08:00
Eli Uriegas
9e208ab744
Merge pull request #210 from kdelwat/testing-documentation
...
Create documentation for testing server endpoints.
2016-12-23 09:57:22 -08:00
Eli Uriegas
94bd9702e5
Merge pull request #211 from rmno/master
...
Fixed import error in docs
2016-12-23 09:57:08 -08:00
cr0hn
3add40625d
Explain how to chain two (or more) middlewares
...
A funny and useful examples about how to chain middlewares.
2016-12-23 16:07:59 +01:00
cr0hn
5afae986a0
Apply response Middleware always
...
Response middleware are useful to apply some post-process information, just before send to the user. For example: Add some HTTP headers (security headers, for example), remove "Server" banner (for security reasons) or cookie management.
The change is very very simple: although an "request" middleware has produced any response, we'll even apply the response middlewares.
2016-12-23 15:59:04 +01:00
cr0hn
f091d82bad
Improvement
...
improvement: support fo binary data as a input. This do that the response process has more performance because not encoding needed.
2016-12-23 13:12:59 +01:00
Romano Bodha
5c1ef2c1cf
Fixed import error
2016-12-23 01:42:05 +01:00
Cadel Watson
8411255700
Create documentation for testing server endpoints.
...
Currently the sanic.utils functionality is undocumented. This provides
information on the interface as well as a complete example of testing
a server endpoint.
2016-12-23 11:08:04 +11:00
38elements
c657c531b4
Customizable protocol
2016-12-23 00:13:38 +09:00
Eli Uriegas
ef9d8710f5
Merge pull request #200 from 38elements/invalid-usage
...
Change HttpParserError process
2016-12-17 22:50:00 -06:00
38elements
75fc9f91b9
Change HttpParserError process
2016-12-18 09:25:39 +09:00
Eli Uriegas
545d9eb59b
Merge pull request #198 from sagnew/patch-2
...
Fix quotes in sample code for consistency
2016-12-14 11:39:22 -06:00
Sam Agnew
a9b67c3028
Fix quotes in sample code for consistency
2016-12-14 12:36:33 -05:00
Eli Uriegas
35e79f3985
Merge pull request #171 from jpiasetz/convert_dict_to_set
...
Convert connections dict to set
2016-12-14 11:30:45 -06:00
Eli Uriegas
435d5585e9
Fix leftover blank line
...
flake8 build failed here: https://travis-ci.org/channelcat/sanic/builds/183991976
2016-12-14 11:29:09 -06:00
Eli Uriegas
ddfb7f2861
Merge branch 'master' into convert_dict_to_set
2016-12-14 11:26:31 -06:00
Eli Uriegas
6c806549ae
Merge pull request #194 from sagnew/patch-1
...
Fix PEP8 in Hello World example
2016-12-13 11:44:53 -06:00
Sam Agnew
8957e4ec25
Fix PEP8 in Hello World example
2016-12-13 12:35:46 -05:00
Paul Jongsma
2003eceba1
remove trailing space
2016-12-13 10:41:39 +01:00
Eli Uriegas
8fc1462d11
Merge pull request #193 from r0fls/jinja-example
...
add jinja example
2016-12-13 00:30:07 -06:00
Raphael Deem
93b45e9598
add jinja example
2016-12-12 22:25:24 -08:00
Eli Uriegas
a3a14cdab2
Merge pull request #170 from jpiasetz/convert_lambda_to_partial
...
Convert server lambda to partial
2016-12-12 20:40:29 -06:00
Paul Jongsma
9ba2f99ea2
added a comment on why to decode the file_path
2016-12-13 01:10:24 +01:00
Eli Uriegas
f9db796a6e
Merge pull request #189 from AntonDnepr/aiopg_examples
...
Aiopg examples
2016-12-12 13:22:32 -06:00
Eli Uriegas
94c7aaf7f8
Merge pull request #190 from kamyarg/master
...
url params docs typo fix
2016-12-12 13:21:46 -06:00
kamyar
6ef6d9a905
url params docs typo fix
...
add missing '>' in url params docs example
2016-12-11 16:34:22 +02:00
Anton Zhyrney
b44e9baaec
aiopg with sqlalchemy example
2016-12-11 14:21:02 +02:00
Anton Zhyrney
f9176bfdea
pep8&improvements
2016-12-11 14:14:03 +02:00
Anton Zhyrney
721044b378
improvements for aiopg example
2016-12-11 14:04:24 +02:00
Anton Zhyrney
154f8570f0
add sanic aiopg example with raw sql
2016-12-11 13:43:31 +02:00
Paul Jongsma
0464d31a9c
Find URL encoded filenames on the fs by decoding them first
2016-12-10 12:16:37 +01:00
Eli Uriegas
e3453553e1
Merge pull request #183 from 38elements/payload-too-large
...
Change Payload Too Large process
2016-12-08 10:27:55 -06:00
Eli Uriegas
6abaa78f9e
Merge pull request #186 from r0fls/master
...
return 400 on invalid json post data
2016-12-08 10:27:29 -06:00
Raphael Deem
457507d8dc
return 400 on invalid json post data
2016-12-07 20:40:31 -08:00
Eli Uriegas
3ea1a80496
Merge pull request #185 from 1a23456789/master
...
Fix test_request_timeout.py
2016-12-06 16:04:15 -06:00
1a23456789
fac4bca4f4
Fix test_request_timeout.py
...
This increases sleep time, Because sometimes timeout error does not occur.
2016-12-06 10:44:08 +09:00
38elements
662e0c9965
Change Payload Too Large process
...
When Payload Too Large occurs, it uses error handler.
2016-12-04 10:50:32 +09:00
Eli Uriegas
80af9e6d76
Merge pull request #173 from jackfischer/master
...
fix for cookie header capitalization bug
2016-12-03 17:28:38 -06:00
Jack Fischer
9b466db5c9
test for http2 lowercase header cookies
2016-12-03 15:19:24 -05:00
Jack Fischer
c34427690a
Merge branch 'master' of git://github.com/channelcat/sanic
2016-12-03 15:08:07 -05:00