Tom Burdick
|
13c28b8f58
use the original request when available for error_terminate
|
12 years ago |
Loïc Hoguin
|
7ff2a62585
Make sure an incorrect port returns a 400 error
|
12 years ago |
Andrew Thompson
|
d916d739d4
Make the arguments to error_logger more consistent
|
12 years ago |
Loïc Hoguin
|
5ef4a15b48
Allow passing the Req and an updated Opts when upgrading protocols
|
12 years ago |
Loïc Hoguin
|
45dd67741f
Clarify error reports indicating they come from Cowboy
|
12 years ago |
serge
|
d0f3372b7d
Fixed onrequest path-related issue
|
12 years ago |
Ivan Blinkov
|
0ce16b3cea
Return "400 Bad Request" instead of crashing process on incorrect queries like /%qq
|
12 years ago |
Loïc Hoguin
|
76cd1e40c9
The onresponse hook now receives 4 arguments, including the body
|
12 years ago |
Loïc Hoguin
|
2e0a2a1c9e
Add max_headers option
|
12 years ago |
Loïc Hoguin
|
90c92850b7
Add missing options in the cowboy_protocol documentation
|
12 years ago |
Loïc Hoguin
|
ce9aff19f0
Remove the urldecode cowboy_protocol option
|
12 years ago |
Loïc Hoguin
|
c326a195e0
Add cowboy_req:get/2 and :set/2 private functions
|
12 years ago |
Loïc Hoguin
|
b2243aa544
Optimize cowboy_protocol
|
12 years ago |
Loïc Hoguin
|
9d4f4ec9c7
Extract the buffer out of the #state{} in cowboy_protocol
|
12 years ago |
Loïc Hoguin
|
ff3c5c7f45
Improve state reset between requests
|
12 years ago |
Loïc Hoguin
|
8a6baac9ad
Use binary:match/2 instead of binary:split/2
|
12 years ago |
Loïc Hoguin
|
34021666cb
Don't use decode_packet/3 for parsing the headers
|
12 years ago |
Loïc Hoguin
|
8497c8bbcd
Don't use decode_packet/3 for parsing the request-line
|
12 years ago |
Loïc Hoguin
|
c2be7c1920
Add types for onrequest and onresponse funs
|
12 years ago |
Loïc Hoguin
|
9090cd9765
Replace many proplists:get_value/{2,3} calls by BIFs
|
12 years ago |
Loïc Hoguin
|
13b743ba26
Include the eunit file only if TEST is defined
|
12 years ago |
Loïc Hoguin
|
58edd4c35a
Add the private get_connection/1 function used by cowboy_protocol
|
12 years ago |
Loïc Hoguin
|
cf0e905c52
Add the private get_buffer/1 function used by cowboy_protocol
|
12 years ago |
Loïc Hoguin
|
e55ec7d43d
Add the private get_resp_state/1 function used by cowboy_protocol
|
12 years ago |
Loïc Hoguin
|
c1dd5b5176
Add the private set_bindings/4 function used by cowboy_protocol
|
12 years ago |
Loïc Hoguin
|
5b56dd780b
Add the private set_buffer/2 function used by cowboy_protocol
|
12 years ago |
Loïc Hoguin
|
fc02b7f767
Add the private add_header/3 function used by cowboy_protocol
|
12 years ago |
Loïc Hoguin
|
905083a7fd
Add the private set_connection/2 function used by cowboy_protocol
|
12 years ago |
Loïc Hoguin
|
350d4ae3f2
Add the private function set_host/4 used by cowboy_protocol
|
12 years ago |
Loïc Hoguin
|
6dbc1f9ef9
Add a private cowboy_req function to create a Req object
|
12 years ago |