0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 20:30:23 +00:00

Small Markdown fixes to better follow the specs

This commit is contained in:
Loïc Hoguin 2012-12-07 16:19:08 +01:00
parent fb07493279
commit 181d0edc52
2 changed files with 152 additions and 159 deletions

View file

@ -19,12 +19,11 @@ next
* Remove implicit dependency on inets * Remove implicit dependency on inets
* Shorten the name of many modules * Shorten the name of many modules
* cowboy_http_protocol becomes cowboy_protocol
* cowboy_http_protocol becomes cowboy_protocol. * cowboy_http_req becomes cowboy_req
* cowboy_http_req becomes cowboy_req. * cowboy_http_rest becomes cowboy_rest
* cowboy_http_rest becomes cowboy_rest. * cowboy_http_static becomes cowboy_static
* cowboy_http_static becomes cowboy_static. * cowboy_http_websocket becomes cowboy_websocket
* cowboy_http_websocket becomes cowboy_websocket.
* Introduce the cowboy_req:req() opaque type * Introduce the cowboy_req:req() opaque type
@ -35,37 +34,32 @@ next
performed where possible. performed where possible.
* Add many cowboy_req functions * Add many cowboy_req functions
* cowboy_req:delete_resp_header/2 deletes a previously set resp header
* cowboy_req:delete_resp_header/2 deletes a previously set resp header. * cowboy_req:set_meta/3 sets metadata in the Req object
* cowboy_req:set_meta/3 sets metadata in the Req object. * cowboy_req:to_list/1 converts the Req object to a list of key/values
* cowboy_req:to_list/1 converts the Req object to a list of key/values. * cowboy_req:fragment/1 returns the request URL fragment
* cowboy_req:fragment/1 returns the request URL fragment. * cowboy_req:host_url/1 returns the request URL without the path or qs
* cowboy_req:host_url/1 returns the request URL without the path or qs. * cowboy_req:url/1 returns the full request URL
* cowboy_req:url/1 returns the full request URL.
* Rename or drop many cowboy_req functions * Rename or drop many cowboy_req functions
* Replace cowboy_req:host/1 with cowboy_req:raw_host/1
* Replace cowboy_req:host/1 with cowboy_req:raw_host/1. * Replace cowboy_req:path/1 with cowboy_req:raw_path/1
* Replace cowboy_req:path/1 with cowboy_req:raw_path/1. * cowboy_req:raw_qs/1 becomes cowboy_req:qs/1
* cowboy_req:raw_qs/1 becomes cowboy_req:qs/1.
* Change the signature of many cowboy_req functions * Change the signature of many cowboy_req functions
* parse_header now returns {ok, any(), Req} instead of {any(), Req}
* parse_header now returns {ok, any(), Req} instead of {any(), Req}. * body_qs now returns {ok, QsVals, Req} instead of {QsVals, Req}
* body_qs now returns {ok, QsVals, Req} instead of {QsVals, Req}.
* multipart_data now returns {headers, Headers, Req} instead of * multipart_data now returns {headers, Headers, Req} instead of
{{headers, Headers}, Req} and {body, Body, Req} instead of {{headers, Headers}, Req} and {body, Body, Req} instead of
{{body, Body}, Req}. {{body, Body}, Req}
* set_resp_* functions now return Req instead of {ok, Req}. * set_resp_* functions now return Req instead of {ok, Req}
* Fix consistency issues caused by erlang:decode_packet/3 * Fix consistency issues caused by erlang:decode_packet/3
* The method is now always a case sensitive binary string
* The method is now always a case sensitive binary string. * Note that standard method names are uppercase (e.g. <<"GET">>)
* Note that standard method names are uppercase (e.g. <<"GET">>). * Header names are now always lowercase binary string
* Header names are now always lowercase binary string.
* The max_line_length cowboy_protocol option was replaced by 3 new options: * The max_line_length cowboy_protocol option was replaced by 3 new options:
* max_request_line_length, defaults to 4096 bytes * max_request_line_length, defaults to 4096 bytes
* max_header_name_length, defaults to 64 bytes * max_header_name_length, defaults to 64 bytes
* max_header_value_length, defaults to 4096 bytes * max_header_value_length, defaults to 4096 bytes
@ -73,7 +67,6 @@ next
* Add max_headers option, limiting the number of headers; defaults to 100 * Add max_headers option, limiting the number of headers; defaults to 100
* Enhance the websocket API * Enhance the websocket API
* Change a websocket error from {error, protocol} to {error, badframe} * Change a websocket error from {error, protocol} to {error, badframe}
* Allow websocket handlers to reply more than one frame * Allow websocket handlers to reply more than one frame
* Check for errors when calling Transport:send/2 to avoid crashes * Check for errors when calling Transport:send/2 to avoid crashes