Age | Commit message (Collapse) | Author | |
---|---|---|---|
2012-03-13 | Do not send chunked Transfer-Encoding replies for HTTP/1.0 | Loïc Hoguin | |
Fixes compatibility issue #140 reported by @majek. | |||
2012-03-12 | Rename inet:ip_port() to inet:port_number() | Loïc Hoguin | |
Thanks go to @superbobry for pointing it out. | |||
2012-02-27 | Remove the redundant include/ from -include("http.hrl") | Loïc Hoguin | |
2012-02-23 | Add cowboy_http:x_www_form_urlencoded/2 | Loïc Hoguin | |
This was initially an internal function, it has been made public due to popular demand as it can sometimes be needed. | |||
2012-02-20 | Add 'Expect' header parsing | Loïc Hoguin | |
At the same time renaming cowboy_http:content_type_params/3 to cowboy_http:params/2 (with a default Acc of []) as this code isn't useful only for content types. | |||
2012-01-23 | Rename the type http_status/0 to cowboy_http:status/0 | Loïc Hoguin | |
2012-01-23 | Rename the type http_header/0 to cowboy_http:header/0 | Loïc Hoguin | |
At the same time rename http_headers/0 to cowboy_http:headers/0. | |||
2012-01-23 | Rename the type http_version/0 to cowboy_http:version/0 | Loïc Hoguin | |
2012-01-23 | Rename the type http_method/0 to cowboy_http:method/0 | Loïc Hoguin | |
Exported types are much better than include files. | |||
2012-01-23 | Merge branch 'multipart' of https://github.com/nox/cowboy | Loïc Hoguin | |
Conflicts: src/cowboy_http_req.erl test/http_SUITE.erl | |||
2012-01-23 | Add multipart support | Anthony Ramine | |
2012-01-06 | Fix handler crashes handling | Loïc Hoguin | |
We try to send a 500 error only if we didn't send the response headers yet. If they were, then we have no way to be sure the response was fully sent, nor should we assume anything about how this will be handled client-side, so we do nothing more and in both cases close the connection. | |||
2012-01-04 | inet_address:parse/1 does not accept binaries as an input, only strings | Yurii Rashkovskii | |
2012-01-03 | Merge branch 'static-handler-split' of https://github.com/klaar/cowboy | Loïc Hoguin | |
2011-12-28 | Add cowboy_http_req:set_resp_body_fun/3. | Magnus Klaar | |
2011-12-28 | Add cowboy_http_req:transport/1 function. | Magnus Klaar | |
2011-12-22 | Add 'Upgrade' header parsing | Loïc Hoguin | |
Not parsing product tokens, I don't see much point. | |||
2011-12-19 | Add meta/2 and meta/3 to cowboy_http_req to save useful protocol information | Loïc Hoguin | |
* cowboy_http_protocol now defines 'websocket_version' as metadata. * cowboy_http_rest now defines 'media_type', 'language', 'charset' as metadata. | |||
2011-12-19 | Add missing p_headers and cookies to compacted values | Loïc Hoguin | |
2011-12-16 | update type of resp_body to iodata | Magnus Klaar | |
resp_body is set by cowboy_http_req:set_resp_body/2 which accepts the input type iodata(). Update the resp_body field to use the same type. Also update the cowboy_http_req:has_resp_body/2 function to use the iolist_size/1 which works with both binary() and iolist() values instead of the byte_size/1 function which only works with binary() values. | |||
2011-12-08 | Merge branch 'master' of https://github.com/erlyvideo/cowboy | Loïc Hoguin | |
Just fixed the indentation a bit. | |||
2011-12-08 | peer_addr/1 function | Max Lapshin | |
2011-12-07 | Merge branch 'noquoted' of https://github.com/klaar/cowboy | Loïc Hoguin | |
2011-12-07 | replace quoted:from_url with cowboy_http:urldecode | Magnus Klaar | |
This change makes the dependency on quoted optional by adding a minimal urldecode function to cowboy. A protocol option for setting the urldecoding function has been added to the cowboy_http_protocol module. The default value for this option is set to be equivalent to the default settings for quoted. {fun cowboy_http:urldecode/2, crash} A note has been added in the README to document how to use quoted instead of this function. A field to store this option value has been added to the state record in the cowboy_http_protocol module and the http_req record in include/http.hrl Functions that previously used quoted:from_url/1 has been updated to require an equivalent function in addition to the previously required arguments. This change removes a C compiler from the build requirements of cowboy. It also removes the requirement to cross compile the code if the target arch/OS is different from the arch/OS used to build it. | |||
2011-12-07 | Add cowboy_http_req:set_resp_cookie/4 | Loïc Hoguin | |
Pretty much just an alias for a combination of set_resp_header and cookie. | |||
2011-12-06 | Simplify the guards for cowboy_http_req:body/2 | Loïc Hoguin | |
2011-12-05 | The semantics for a missing 'If-Match' aren't the same as '*' | Loïc Hoguin | |
2011-12-05 | Fix specs to allow headers as iodata() and not just binary() | Loïc Hoguin | |
2011-11-28 | Add set_resp_header/3 and set_resp_body/2 to cowboy_http_req | Loïc Hoguin | |
These functions allow to set response headers and body in advance, before calling any of the reply functions. Also add has_resp_header/2 and has_resp_body/1 to check if the given response headers have already been set. | |||
2011-11-24 | Fix default parsed values for the Accept and Accept-* headers | Loïc Hoguin | |
2011-11-10 | Support 'Content-Type' in parse_header/2 | Anthony Ramine | |
2011-11-09 | Add 'If-Match' and 'If-None-Match' to parse_header/2 | Loïc Hoguin | |
2011-11-07 | Fix reading the request body when Length < byte_size(Buffer) | Loïc Hoguin | |
2011-11-07 | Add 'Accept-Language' to cowboy_http_req:parse_header/2 | Loïc Hoguin | |
2011-11-05 | Add 'If-Modified-Since' and 'If-Unmodified-Since' to parse_header/2 | Loïc Hoguin | |
Implementing the full HTTP-date type (RFC1123, RFC850, asctime). | |||
2011-11-04 | Merge branch 'parse_header-content-length' of https://github.com/nox/cowboy | Loïc Hoguin | |
Conflicts: src/cowboy_http.erl | |||
2011-11-04 | Support 'Content-Length' in parse_header/2 | Anthony Ramine | |
2011-11-04 | Rename cowboy_http:charset/2 to conneg/2 and use it for Accept-Encoding | Loïc Hoguin | |
Sorry I apparently used an outdated RFC when I was doing this. | |||
2011-10-29 | Fix cowboy_http_req:chunk/2 spec | Paul Oliver | |
2011-10-26 | Add 'Accept-Charset' to cowboy_http_req:parse_header/2 | Loïc Hoguin | |
2011-10-26 | Add 'Accept-Encoding' to cowboy_http_req:parse_header/2 | Loïc Hoguin | |
2011-10-26 | Add 'Accept' header parsing | Loïc Hoguin | |
Rework the cowboy_http_req:parse_header/2 function while I was at it. | |||
2011-10-20 | Parse Connection header tokens in a case-insensitive manner | Loïc Hoguin | |
2011-10-20 | Add a cowboy_http_req:upgrade_reply/3 function and use it for websockets | Loïc Hoguin | |
This function doesn't try to add any additional header besides the Connection: Upgrade header. It also doesn't accept a body. It should be used for the intermediate reply to an upgrade process, before the real reply is sent (if any, for example when using TLS). | |||
2011-10-17 | Rewrite the token list parsing into separate, modulable functions | Loïc Hoguin | |
Introduce cowboy_http's list/2, nonempty_list/2, token/2 functions. | |||
2011-10-13 | Add shortcuts to reply functions | Loïc Hoguin | |
New functions are reply/2, reply/3, chunked_reply/2 in cowboy_http_req. | |||
2011-10-13 | Rename a variable from Code to Status | Loïc Hoguin | |
2011-10-07 | Fix a crash in response_connection when Name is an atom =/= 'Connection' | Loïc Hoguin | |
2011-10-06 | Close the connection when the application sends Connection: close | Loïc Hoguin | |
Now Cowboy checks headers sent to the client for the 'Connection' header value, parses it, and checks whether it contains a 'close' or 'keep-alive' value. It makes sure to close or keep the connection alive depending on the value found there, if any. Also change chunked replies to not close the connection by default unless the application requests it. | |||
2011-10-06 | Fix a crash in websocket_handshake when cowboy_http_req:compact/1 is used | Loïc Hoguin | |
Also add a call to compact/1 in the websocket test handler so we may catch bugs related to it faster later on. |