Loïc Hoguin
e296f13d24
Update README and convert to Asciidoc
2016-09-30 18:19:55 +02:00
Loïc Hoguin
5477d613f9
Tweak the one-liner description of the project
2016-09-29 22:46:26 +02:00
Loïc Hoguin
e80291fbdc
Tweak the cowboy(7) manual
2016-09-25 23:27:34 +02:00
Loïc Hoguin
fa58155f72
Update the cowboy(7) manual
...
It now links to all modules found in the manual and can therefore
easily act as an index for the application.
2016-09-25 23:14:19 +02:00
Loïc Hoguin
cef6e5b472
Fix whitespace in example
2016-09-25 18:46:47 +02:00
Loïc Hoguin
0424724062
Update manual for the cowboy module
...
This commit separates the documentation of the functions into
separate manual pages, with at least one example per function
and a lot more details about parameters, return values and
related functions and modules. It also includes a changelog
indicating when the function was added or changed.
The inspiration for this comes mainly from the PHP documentation
and feedback from users.
2016-09-25 17:32:41 +02:00
Loïc Hoguin
31cabe0fb9
Use spaces in snippets in the guide
2016-09-14 18:51:11 +02:00
Loïc Hoguin
a231216b07
Update the Websocket handlers chapter
2016-09-14 18:39:17 +02:00
Loïc Hoguin
06e1e2be68
Update the routing chapter
2016-09-04 19:47:09 +02:00
Loïc Hoguin
8777f631ca
Rework the constraints chapter
2016-09-04 19:09:51 +02:00
Loïc Hoguin
2a6359ecc1
Minor updates to static files chapter
2016-09-02 14:55:40 +02:00
Loïc Hoguin
2474ce9d73
Update the multipart chapter
2016-09-02 12:59:45 +02:00
Loïc Hoguin
67c5b057f9
Update the Websocket protocol chapter
2016-09-01 17:42:41 +02:00
Loïc Hoguin
5495b57174
Update the cookies guide chapter
2016-09-01 17:22:53 +02:00
Loïc Hoguin
88dbc30391
Merge branch 'master' of https://github.com/alexprut/cowboy
2016-08-31 17:02:23 +02:00
Loïc Hoguin
aa617f2330
Update the guide chapter for responses
2016-08-31 17:01:25 +02:00
Alex Prut
b58093a3c7
Update websocket documentation: based on https://github.com/ninenines/cowboy/blob/master/examples/websocket/src/ws_handler.erl
2016-08-31 12:42:50 +02:00
Loïc Hoguin
bae10829ba
Add the missing listeners guide chapter
...
While incomplete it's still a pretty good start.
2016-08-30 14:27:55 +02:00
Loïc Hoguin
8fc1371df8
Minor documentation fixes
...
"make docs" should now work again.
2016-08-30 14:18:14 +02:00
Loïc Hoguin
4c6f2c9a95
Fix a couple xref links
...
They were still using the old ezdoc syntax.
2016-08-30 13:23:31 +02:00
Loïc Hoguin
843866c654
Add placeholder flow diagram chapter
2016-08-30 13:07:35 +02:00
Loïc Hoguin
9b8a05bbc1
Fix rendering issues in the guide and manual
2016-08-30 13:03:26 +02:00
Loïc Hoguin
bee1320700
Update the body reading chapter
2016-08-25 17:40:37 +02:00
Loïc Hoguin
7839f13671
More 2.0 documentation updates
...
Still incomplete.
2016-08-24 17:25:33 +02:00
Witeman Zheng
b9ad02d305
Fix websocket example
2016-08-22 09:44:42 +02:00
Loïc Hoguin
c750dd76b4
Send many frames in one TCP send
...
Includes refactoring of the related code to avoid repetition.
2016-08-15 20:04:37 +02:00
Loïc Hoguin
1d01d0fc06
Allow websocket_init/1 to reply/close/hibernate
2016-08-15 19:21:38 +02:00
Loïc Hoguin
af88442610
Modernize the Websocket test suite
2016-08-15 18:06:16 +02:00
Loïc Hoguin
d1b65a67cf
Remove Req from the Websocket interface
...
After the switch to Websocket, we are no longer in a request/response
scenario, therefore a lot of the cowboy_req functions do not apply
anymore.
Any data required from the request will need to be taken from Req
in init/2 and saved in the handler's state.
2016-08-12 19:27:23 +02:00
Loïc Hoguin
b63b6ef865
Add missing specs to an internal cowboy_req function
2016-08-12 18:06:45 +02:00
Loïc Hoguin
e44ac98c83
Merge branch 'master' of https://github.com/camshaft/cowboy
2016-08-12 17:26:28 +02:00
Loïc Hoguin
97986df276
Fix Websocket compression
...
The option for enabling Websocket compression has been
renamed. Previously it was shared with HTTP compression,
now it's specific to Websocket. The new option is named
'websocket_compress'.
2016-08-12 16:56:08 +02:00
Loïc Hoguin
5cb2b544b7
Use cow_http_hd:parse_host directly
...
Removes some duplicate code from cowboy_http.
2016-08-11 16:45:52 +02:00
Loïc Hoguin
b75b0a6d4d
Use integer_to_binary when possible
2016-08-11 11:53:05 +02:00
Loïc Hoguin
699164fbdd
Add a test for echo_get example undefined
2016-08-11 11:48:09 +02:00
Loïc Hoguin
8fb4648b13
Merge branch 'master' of https://github.com/sergey-ivlev/cowboy
2016-08-11 11:38:58 +02:00
Loïc Hoguin
badc8d596e
Fix cookie example again
2016-08-11 11:25:58 +02:00
Loïc Hoguin
e2d5c268aa
Fix timer-sent events in the websocket example
2016-08-11 11:06:03 +02:00
Loïc Hoguin
5fa5ba8ca4
Add specs for the cowboy_req:push/3,4 functions
2016-08-10 17:52:44 +02:00
Loïc Hoguin
83aa3f1b9c
Use binary_to_integer instead of to list and back
2016-08-10 17:50:28 +02:00
Loïc Hoguin
9966df9ad4
Let the stream handler take care of crash handling and logging
2016-08-10 17:45:28 +02:00
Loïc Hoguin
e30d120bd8
Make reply functions return Req
2016-08-10 17:15:02 +02:00
Loïc Hoguin
aa6f2ab5a4
Update the multipart reading interface
...
Now named read_part/read_part_body, with a verb indicating action.
2016-08-10 15:09:04 +02:00
Loïc Hoguin
ae95e87eb1
Update examples to the new interface
2016-08-10 14:33:43 +02:00
Loïc Hoguin
00f3ae7d20
Remove logic to always send a response in cowboy_loop
...
This is taken care of at the protocol level now.
2016-08-10 13:55:35 +02:00
Loïc Hoguin
3a057683af
Add a lot of todos
2016-08-10 11:52:41 +02:00
Loïc Hoguin
ae0dd61673
Add tests for responses and request body reading
...
This is a large commit. The cowboy_req interface has largely
changed, and will change a little more. It's possible that
some examples or tests have not been converted to the new
interface yet. The documentation has not yet been updated.
All of this will be fixed in smaller subsequent commits.
Gotta start somewhere...
2016-08-10 11:49:31 +02:00
sergey-ivlev
35934c6efd
fix echo_get example
2016-07-26 12:26:58 +03:00
Cameron Bytheway
e09a856805
send resp_headers with websocket responses
2016-06-27 11:33:25 -06:00
Loïc Hoguin
0ba3a9a222
Add forgotten changes to a test handler
2016-06-22 13:10:33 +02:00