Loïc Hoguin
7b359352d4
Remove http_resp_body/0, inline it directly in the record definition
2012-01-23 09:46:40 +01:00
Loïc Hoguin
16d3cb76c7
Rename the type http_status/0 to cowboy_http:status/0
2012-01-23 09:43:26 +01:00
Loïc Hoguin
67e5713b2b
Remove http_cookies/0, inline it directly in the record definition
2012-01-23 09:39:17 +01:00
Loïc Hoguin
a297d5e42b
Rename the type http_header/0 to cowboy_http:header/0
...
At the same time rename http_headers/0 to cowboy_http:headers/0.
2012-01-23 09:36:59 +01:00
Loïc Hoguin
8622dff906
Rename the type http_version/0 to cowboy_http:version/0
2012-01-23 09:28:29 +01:00
Loïc Hoguin
314483a0b6
Rename the type http_uri/0 to cowboy_http:uri/0
2012-01-23 09:23:58 +01:00
Loïc Hoguin
9f40167487
Rename the type http_method/0 to cowboy_http:method/0
...
Exported types are much better than include files.
2012-01-23 09:21:33 +01:00
Loïc Hoguin
3667ec9451
Fix typespecs for calendar:datetime/0 in cowboy_http_static
2012-01-23 09:20:46 +01:00
Loïc Hoguin
dee19f11c3
Add {halt, Req, State} return value to most REST callbacks
...
Excluding generate_etag, last_modified, expires and variances.
2012-01-23 08:24:15 +01:00
Loïc Hoguin
0761ef67a1
Rename a lot of HandlerState2 variables to HandlerState
2012-01-23 08:11:29 +01:00
Loïc Hoguin
3078e94db6
Improve the return value for cowboy_http_rest:upgrade/4
2012-01-23 07:55:08 +01:00
Loïc Hoguin
7482c0de75
Improve the listener name in the README
2012-01-23 07:42:35 +01:00
Loïc Hoguin
b650ef8907
Merge branch 'multipart' of https://github.com/nox/cowboy
...
Conflicts:
src/cowboy_http_req.erl
test/http_SUITE.erl
2012-01-23 07:37:49 +01:00
Anthony Ramine
528507c7de
Add multipart support
2012-01-23 07:20:35 +01:00
Loïc Hoguin
e68bbfac34
Welcome to new developments with 0.5.0
2012-01-12 20:08:35 +01:00
Loïc Hoguin
9ee120db78
Update version to 0.4.0
2012-01-09 08:13:20 +01:00
Loïc Hoguin
fed6727634
Make REST handlers' put_resource accept true or false return values
...
Followup to 0bb23f2400
.
As discussed in #119 .
2012-01-09 08:06:05 +01:00
Loïc Hoguin
348e22589e
Merge branch 'static-etag-hook' of https://github.com/klaar/cowboy
2012-01-09 07:54:58 +01:00
Loïc Hoguin
9b620bbb4c
Add HTTP handler loops to the README
2012-01-09 07:40:43 +01:00
Magnus Klaar
a7334d55c0
Add etag option to cowboy_http_static handler.
2012-01-07 23:07:45 +01:00
Loïc Hoguin
fd49215908
Update AUTHORS
2012-01-06 21:32:45 +01:00
Loïc Hoguin
45f37b8687
Update CHANGELOG
2012-01-06 21:29:35 +01:00
Loïc Hoguin
0bb23f2400
Make REST handlers' process_post accept true or false return values
...
They should return true when it has been processed successfully,
or false otherwise, in which case a 500 error is sent.
Fixes #119 .
2012-01-06 21:05:58 +01:00
Loïc Hoguin
d2f13366a9
Fix the stream_body_set_resp test
...
It was failing from time to time due to the response being sent
as two separate packets.
2012-01-06 20:49:31 +01:00
Loïc Hoguin
fd211d3c03
Fix handler crashes handling
...
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-06 20:23:59 +01:00
Loïc Hoguin
ba87aa4193
Move the ensure_response call before ensure_body_processed
...
We want to reply as soon as possible.
2012-01-06 19:20:17 +01:00
Loïc Hoguin
5095c27c65
Merge branch 'issue-114-tests' of https://github.com/klaar/cowboy into gracefully-handle-crashes
...
Conflicts:
test/http_SUITE.erl
2012-01-06 19:19:34 +01:00
Loïc Hoguin
5627277aa2
Merge branch 'static-updates' of https://github.com/klaar/cowboy
2012-01-05 01:04:12 +01:00
Magnus Klaar
1592adcd4e
only run end_static_dir for http and https
2012-01-05 01:01:03 +01:00
Magnus Klaar
54d16c14ad
Add test and doc for content types function.
2012-01-05 01:01:03 +01:00
Loïc Hoguin
8ab05058e6
Merge branch 'inet_parse_address_fix' of https://github.com/spawngrid/cowboy
2012-01-05 00:19:41 +01:00
Yurii Rashkovskii
ade1fb93ca
inet_address:parse/1 does not accept binaries as an input, only strings
2012-01-04 15:13:14 -08:00
Loïc Hoguin
5c101560df
Add R15B to travis-ci's configuration file
2012-01-04 23:23:22 +01:00
Loïc Hoguin
bd8f31ed07
Merge branch 'static-handler-split' of https://github.com/klaar/cowboy
2012-01-03 23:39:45 +01:00
Loïc Hoguin
063f64a02a
Merge pull request #118 from klaar/travis-versions-fix
...
Remove R14B and R14B01 from .travis.yml
2012-01-03 13:51:49 -08:00
Magnus Klaar
5568a26d3c
Remove R14B and R14B01 from .travis.yml
2012-01-03 16:49:07 +01:00
Magnus Klaar
89870b22d9
Add note on async threads to cowboy_http_static.
2012-01-03 16:29:32 +01:00
Magnus Klaar
50578254d5
Add tests for #114
2011-12-29 00:06:22 +01:00
Magnus Klaar
ea7ae14df8
Add built-in cowboy_http_static handler.
2011-12-28 18:17:15 +01:00
Magnus Klaar
f56479ffc2
Add cowboy_http_req:set_resp_body_fun/3 to rest
2011-12-28 18:17:15 +01:00
Magnus Klaar
937a2b0326
Add cowboy_http_req:set_resp_body_fun/3.
2011-12-28 18:17:10 +01:00
Magnus Klaar
612b8f21fe
Add cowboy_http_req:transport/1 function.
2011-12-28 18:15:47 +01:00
Loïc Hoguin
156c84ff29
Use calendar date and time types exported since R14B04
...
Removes the cowboy_clock:date/0, time/0 and datetime/0 exported types.
2011-12-26 10:17:29 +01:00
Loïc Hoguin
52c177fa6f
Add CHANGELOG.md file
2011-12-26 08:40:18 +01:00
Loïc Hoguin
3d5f02af0e
Update AUTHORS file
2011-12-22 22:18:19 +01:00
Loïc Hoguin
298ba1f1bb
Add 'Upgrade' header parsing
...
Not parsing product tokens, I don't see much point.
2011-12-22 22:10:00 +01:00
Loïc Hoguin
17c9d45786
Remove outdated @todo notes and update another
2011-12-22 21:48:24 +01:00
Loïc Hoguin
72d91583b9
Add a max_keepalive HTTP protocol option
...
Based on the patch by Louis-Philippe Gauthier.
2011-12-22 21:35:40 +01:00
Loïc Hoguin
eea6b2ab80
Websocket control frames payload length must be lower than 126 bytes
2011-12-22 21:00:09 +01:00
Loïc Hoguin
7a68a38e5a
Add ct tests for binary websocket frames
2011-12-22 20:19:05 +01:00