cauldron v0.1.9 Cauldron.Request protocol
Summary
Functions
Fetch the whole body from the request, or the rest if you used read
before
Check if the request has a body
Get the headers used by the request
Get the method used by the request
Read a chunk from the request body, chunks are split respecting the
chunk_size
option of the listener
Read a chunk from the request body, chunks are split by the given size
Create a response for the request, it is not sent to allow for more fine-grained responses
Respond to the request sending a file or with just the response code
Respond to the request with the given code and body or with the given code and IO handle
Respond to the request with the given code, headers and body or with the given code and and generator function
Respond to the request with the given code, headers and generator function
Get the URI used by the request
Types
Functions
Fetch the whole body from the request, or the rest if you used read
before.
Check if the request has a body.
Get the headers used by the request.
Read a chunk from the request body, chunks are split respecting the
chunk_size
option of the listener.
Read a chunk from the request body, chunks are split by the given size.
Create a response for the request, it is not sent to allow for more fine-grained responses.
Respond to the request sending a file or with just the response code.
Respond to the request with the given code and body or with the given code and IO handle.
reply(t, integer, HTTProt.Headers.t | term, iolist | (term -> {iolist, term})) :: none
Respond to the request with the given code, headers and body or with the given code and and generator function.
Respond to the request with the given code, headers and generator function.