0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-15 12:40:25 +00:00
Commit graph

13 commits

Author SHA1 Message Date
Loïc Hoguin
87cd5a2206 Change wording in the guide to remove ambiguity 2014-04-26 14:32:56 +02:00
Loïc Hoguin
2b2829f585 Greatly expand on the Req object
Cut in four different chapters: request, request body,
response and cookies.
2013-09-23 15:44:10 +02:00
Loïc Hoguin
28186a68d0 Make the HTTP version type more practical
Now instead of {1, 1} we have 'HTTP/1.1', and instead of {1, 0}
we have 'HTTP/1.0'. This is more efficient, easier to read in
crash logs, and clearer in the code.
2013-05-16 12:56:01 +02:00
Loïc Hoguin
e0b5526f1e Remove cowboy_req:fragment/1
Clients do not send it. We skip the value if we receive it now,
as it shouldn't happen, and won't for all the mainstream clients.
2013-05-15 15:17:33 +02:00
Loïc Hoguin
6256429dc9 Remove cowboy_req:peer_addr/1
This kind of function is highly dependent on the proxy used,
therefore parsing was added for x-forwarded-for instead and we
just let users write the function that works for them. The code
can be easily extracted if anyone was using the function.
2013-04-11 22:25:36 +02:00
Loïc Hoguin
ce1d8862c0 Replace init_stream/5 with stream_body/2
This allows us to change the max chunk length on a per chunk basis
instead of for the whole stream. It's also much easier to use this
way even if we don't want to change the chunk size.
2013-04-02 19:40:38 +02:00
rambocoder
84d7671e91 Check the length before reading the body in body/1 and body_qs/1 2013-03-06 08:50:45 -05:00
Loïc Hoguin
233cf43ab9 Make streamed chunk size configurable
Defaults to a maximum of 1000000 bytes.

Also standardize the te_identity and te_chunked decoding functions.
Now they both try to read as much as possible (up to the limit),
making body reading much faster when not using chunked encoding.
2013-03-05 21:54:35 +01:00
Loïc Hoguin
b2ba4d28f8 Add a section about closing the connection in the guide 2013-01-29 13:33:47 +01:00
Loïc Hoguin
4b15d8f6e3 First draft done for the request object guide chapter 2013-01-20 15:14:13 +01:00
Loïc Hoguin
42e3468fec More request object documentation in the guide 2013-01-19 17:58:58 +01:00
Loïc Hoguin
529de4d518 Beginning of request object chapter in the guide 2013-01-18 18:04:21 +01:00
Loïc Hoguin
06e74355c0 Add a skeleton of the guide to ease user contributions
Has some stuff that aren't in master yet, and lacks a lot more
that is already in master.
2013-01-01 18:27:41 +01:00