0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 12:20:24 +00:00
Commit graph

1140 commits

Author SHA1 Message Date
Loïc Hoguin
73f65d5a75 Document the HTTP status codes Cowboy may send in the manual
422 is left out as it's soon to be replaced by 400.
2014-06-26 14:32:20 +02:00
Loïc Hoguin
24213c3b6a Cowboy works fine under 17.1 2014-06-25 18:19:26 +02:00
Loïc Hoguin
fd3c40c7ee Wrap-up the user guide 2014-06-25 11:23:58 +02:00
Loïc Hoguin
642630fea1 Add a multipart intro chapter to the guide 2014-06-23 17:51:36 +02:00
Loïc Hoguin
5cd2f0516a Write the guide chapter rest_flowcharts explaining the diagrams 2014-06-22 17:10:17 +02:00
Loïc Hoguin
efa8bb5cf8 Add a missing "true" label 2014-06-21 19:03:53 +02:00
Loïc Hoguin
05503affa8 Add a stub chapter with all the REST flowcharts
The detailed explanations will be written at a later time.
2014-06-21 18:50:50 +02:00
Loïc Hoguin
7b18373943 Add more details about the 304 in cond diagram 2014-06-21 18:22:20 +02:00
Loïc Hoguin
0083f44c6a Add REST diagram for PUT/POST/PATCH 2014-06-21 18:15:50 +02:00
Loïc Hoguin
14c1414b4b Add REST diagram for DELETE method 2014-06-20 19:52:51 +02:00
Loïc Hoguin
b386c962f6 Add REST diagram for GET and HEAD 2014-06-20 18:56:07 +02:00
Loïc Hoguin
1b22e1582e Add REST diagram for the part about conditional requests 2014-06-19 19:46:45 +02:00
Loïc Hoguin
82f51ca6d2 Add variances to the conneg diagram 2014-06-19 19:29:35 +02:00
Loïc Hoguin
a4cc031218 Add more REST diagrams 2014-06-19 13:47:49 +02:00
Loïc Hoguin
d8b65cbc33 Add REST diagram for OPTIONS method 2014-06-18 17:08:25 +02:00
Loïc Hoguin
ee3ad5e510 Update Cowboy to 0.10.0 2014-06-10 12:07:11 +02:00
Loïc Hoguin
95a25a1b74 Update AUTHORS 2014-06-10 12:02:58 +02:00
Loïc Hoguin
0a27247a91 Update CHANGELOG and ROADMAP 2014-06-10 12:00:30 +02:00
Loïc Hoguin
c81b94160e Update Ranch to 0.10.0 2014-06-10 11:36:55 +02:00
Loïc Hoguin
6bbdbe4efa Update cowlib to 0.6.2
Fixes parsing of Google Analytics cookies.
2014-06-10 09:34:46 +02:00
Loïc Hoguin
7cd3ecc6b6 Fix specs and a weird value in cowboy_spdy 2014-06-10 09:24:06 +02:00
Loïc Hoguin
fc7e038fba Merge branch 'binary-expires' of git://github.com/NineFX/cowboy 2014-06-10 08:39:40 +02:00
Drew Varner
6ed25fd60b Allow users to pass a raw binary() as the expires header. 2014-06-10 00:12:26 +02:00
Loïc Hoguin
7a808e0aa3 Add a REST principles chapter to the guide
This is a complex subject so hopefully I did not introduce
errors while trying to explain it.
2014-06-04 15:28:27 +02:00
Loïc Hoguin
07c622a0fe Add a simple multipart upload example 2014-06-03 19:20:07 +02:00
Loïc Hoguin
5d1d9af6cd Add a return value to onresponse hook to override status/headers
This would allow us to override them without messing up the body,
and would make it usable with the static file handler for example.

Experimental at this point.
2014-06-03 18:31:05 +02:00
Loïc Hoguin
0c37925642 Add request body reading options
The options were added to allow developers to fix timeout
issues when reading large bodies. It is also a cleaner and
easier to extend interface.

This commit deprecates the functions init_stream, stream_body
and skip_body which are no longer needed. They will be removed
in 1.0.

The body function can now take an additional argument that is a
list of options. The body_qs, part and part_body functions can
too and simply pass this argument down to the body call.

There are options for disabling the automatic continue reply,
setting a maximum length to be returned (soft limit), setting
the read length and read timeout, and setting the transfer and
content decode functions.

The return value of the body and body_qs have changed slightly.
The body function now works similarly to the part_body function,
in that it returns either an ok or a more tuple depending on
whether there is additional data to be read. The body_qs function
can return a badlength tuple if the body is too big. The default
size has been increased from 16KB to 64KB.

The default read length and timeout have been tweaked and vary
depending on the function called.

The body function will now adequately process chunked bodies,
which means that the body_qs function will too. But this means
that the behavior has changed slightly and your code should be
tested properly when updating your code.

The body and body_qs still accept a length as first argument
for compatibility purpose with older code. Note that this form
is deprecated and will be removed in 1.0. The part and part_body
function, being new and never having been in a release yet, have
this form completely removed in this commit.

Again, while most code should work as-is, you should make sure
that it actually does before pushing this to production.
2014-06-02 23:09:43 +02:00
Loïc Hoguin
1ad3aae4d5 Merge branch 'fix-host-websocket-example' of git://github.com/edgurgel/cowboy 2014-04-27 11:50:41 +02:00
Eduardo Gurgel
f9e76d7df2 Use current host as base to Websocket Example URL 2014-04-27 09:54:24 +12:00
Loïc Hoguin
c966076bbe Add a test for multipart over chunked transfer-encoding 2014-04-26 17:34:56 +02:00
Loïc Hoguin
da29d8138d Merge branch 'language-range-header' of git://github.com/NineFX/cowboy 2014-04-26 14:38:24 +02:00
Loïc Hoguin
87cd5a2206 Change wording in the guide to remove ambiguity 2014-04-26 14:32:56 +02:00
Loïc Hoguin
980342f73c Make loop handlers work with SPDY
Adds a loop_handler test suite that runs all tests under HTTP, HTTPS,
SPDY each with and without the compress option enabled.

Fixes output filtering that used to filter more than it should have.
This forces us to parse the string sent by the emulator, which means
it's probably not perfect yet. But it should at least not hide errors
we want to see.

Fix a crash in the output filtering code that entirely disabled
output. Now when there is a crash the normal tty output is restored.

Handlers are now in test/handlers/ as they can be reused between
suites.

Only generate a single certificate for the whole ct run to speed
things up when we got many different test groups each needing
certificates.
2014-04-26 13:46:55 +02:00
Loïc Hoguin
a3f7f68e30 Fix two issues where listeners didn't get stopped properly 2014-04-24 14:55:58 +02:00
Loïc Hoguin
25a17a2590 Move listener initialization to cowboy_test 2014-04-22 22:50:45 +02:00
Loïc Hoguin
b377eb9805 Start applications directly from the ct hook 2014-04-22 20:52:08 +02:00
Loïc Hoguin
75218c4be0 Silence expected test error reports from the console output
The errors are still logged by common_test to the report it creates.
The process that is going to crash has to call cowboy_error_h:ignore/3
with the MFA where the crash is expected to occur for it to be ignored.
Gun retry failures are also ignored. Only unexpected crashes are printed.
2014-04-21 21:24:43 +02:00
Loïc Hoguin
74512fc84c Enable Autobahn Test Suite by default
Includes a variety of small changes that are a first step to
improving the test system heavily.
2014-04-20 22:20:54 +02:00
Loïc Hoguin
806cde9ace Cleanup the configuration handling in http_SUITE 2014-04-17 19:15:39 +02:00
Loïc Hoguin
23eb3f8e9a Fix manual for content_types_provided 2014-04-17 13:38:42 +02:00
Loïc Hoguin
5c2adc167a Merge branch 'fix/basic-auth-empty-password' of git://github.com/soundrop/cowboy 2014-04-17 13:23:48 +02:00
Loïc Hoguin
e9198e7387 Kato.im added to the list of sponsors 2014-04-14 12:09:56 +02:00
Loïc Hoguin
e553323671 Add 17.0 and 17.0_native to the list of tested releases 2014-04-11 15:43:52 +02:00
Loïc Hoguin
71b8316b0d Fix application start order in tests, gun depends on cowlib 2014-04-11 14:34:35 +02:00
Loïc Hoguin
0502452967 Update cowlib to 0.6.1 2014-03-27 11:39:09 +01:00
Loïc Hoguin
c9b9644aa3 Add +warn_missing_spec and fix specs 2014-03-27 11:30:44 +01:00
Loïc Hoguin
17af50812c Remove outdated comments, all edoc, plus a few minor tweaks 2014-03-26 19:05:59 +01:00
Loïc Hoguin
9110ee83fe Update rebar.config 2014-03-25 18:23:26 +01:00
Loïc Hoguin
a01f992ffb Simplify the SPDY suite using the new Gun interface 2014-03-25 13:01:23 +01:00
Loïc Hoguin
abf246c9aa Make the latin1 cyrillic route tests work on R17+
Instead of relying on the encoding of the file we now simply
have list of numbers as they would be inside a latin1 file.
2014-03-25 11:42:57 +01:00