aboutsummaryrefslogtreecommitdiffstats
path: root/src/cow_http.erl
AgeCommit message (Collapse)Author
2018-09-17Add cow_http:parse_request_line/1Loïc Hoguin
2018-08-06Export two cow_http types used by GunLoïc Hoguin
2018-06-04Update copyrightsLoïc Hoguin
2018-05-18Add cow_http:status_to_integerLoïc Hoguin
2018-05-07Add 103 early hints as a valid statusMark Madsen
2018-03-05Remove trailing whitespace from header valuesGustaf Sjoberg
Edited to add a test and use byte_size instead of size.
2018-03-05Add the 308 Permanent Redirect status codeLoïc Hoguin
2017-11-28Add the 421 status code from HTTP/2Loïc Hoguin
2017-11-15Add support for chunked transfer-encoding trailersLoïc Hoguin
It considers all 0-sized chunks that aren't \r\n\r\n to be trailers. There's no option for enabling/disabling the behavior (for example when the te header was sent). It doesn't parse the trailer, it's up to the user to parse it separately via the new cow_http:headers/1 functions. Note that this reuses the TotalLength part of the returned 'done' tuple to signal whether there are trailers. This value has been ignored in Cowboy since 2.0 and was just a historical leftover. I'm not aware of anyone using this module outside of Gun or Cowboy, so I don't expect this to break anything. If it does, well, it's not a documented function anyway. Your fault.
2017-04-18Add support for HTTP 451 (RFC 7725)Nicholas Lundgaard
See [rfc7725 section 3](https://tools.ietf.org/html/rfc7725#section-3).
2016-10-04Fix Dialyzer warningsLoïc Hoguin
2016-06-06Make cow_http:parse_fullpath/1 remove any fragment componentLoïc Hoguin
2016-03-12Add cow_http:response/3Loïc Hoguin
2015-03-12MaintenanceLoïc Hoguin
* Update copyright years. * Update erlang.mk. * Fix triq testing.
2015-01-04Simplify the cow_http_hd codeLoïc Hoguin
Also rename the macros for inline lowercasing to ?LOWER, and move the type detection macros to cow_parse.hrl.
2014-12-29Add cow_http_hd:parse_host/1, remove cow_http:parse_fullhost/1Loïc Hoguin
From RFC7230 and RFC3986. The new function now validates that the characters are correct, but does not go as far as validate segment sizes or number of segments. Its main purpose is still to split host and port.
2014-12-12Optimize cow_http:parse_fullhost/1Loïc Hoguin
Using two functions instead of an argument is a much better way to handle two specific pathways in the code.
2014-03-21Add cow_http:request/4 and cow_http:version/1Loïc Hoguin
2014-03-21Improve specs in cow_httpLoïc Hoguin
2014-02-27Add cow_http:parse_{status_line,headers}/1Loïc Hoguin
Imported from Cowboy and then optimized.
2014-02-05Update copyright years0.5.0Loïc Hoguin
2014-02-05Use the inline macro for cow_http:parse_fullhostLoïc Hoguin
Tidying the code a little.
2013-10-22Simplify parse_fullpath codeLoïc Hoguin
2013-09-04Introduce cow_http support module0.1.0Loïc Hoguin
This module contains parsing functions for the basic HTTP items, basically request-line, response-line and host.