Index of class methods


A
accept [Http_types.daemon]
addBasicHeaders [Http_types.response]
add basic headers to response, see Http_daemon.send_basic_headers
addBody [Http_types.message]
addBody [Http_message.message]
append a string to message body
addBodyBuf [Http_types.message]
addBodyBuf [Http_message.message]
append a whole buffer to message body
addHeader [Http_types.message]
addHeader [Http_message.message]
add an HTTP header
addHeaders [Http_types.message]
addHeaders [Http_message.message]
add a list of HTTP headers
authorization [Http_types.request]

B
body [Http_types.message]
body [Http_message.message]
bodyBuf [Http_types.message]
bodyBuf [Http_message.message]

C
clientAddr [Http_types.message]
clientAddr [Http_message.message]
clientPort [Http_types.message]
clientPort [Http_message.message]
clientSockaddr [Http_types.message]
clientSockaddr [Http_message.message]
close [Http_types.connection]
close connection to client.
code [Http_types.response]
contentEncoding [Http_types.response]
contentType [Http_types.response]

D
date [Http_types.response]

E
expires [Http_types.response]

F
fstLineToString [Http_message.message]

G
getRequest [Http_types.connection]
getRequest [Http_types.daemon]
shortcut method, blocks until a client has submit a request and return a pair request * connection

H
hasHeader [Http_types.message]
hasHeader [Http_message.message]
header [Http_types.message]
header [Http_message.message]
headers [Http_types.message]
headers [Http_message.message]

I
isClientError [Http_types.response]
response is a client error one
isError [Http_types.response]
response is either a client error or a server error response
isInformational [Http_types.response]
response is an informational one
isRedirection [Http_types.response]
response is a redirection one
isServerError [Http_types.response]
response is a server error one
isSuccess [Http_types.response]
response is a success one

M
meth [Http_types.request]

P
param [Http_types.request]
lookup a given parameter
paramAll [Http_types.request]
like param above but return a list of values associated to given parameter (a parameter could be defined indeed more than once: passed more than once in a query string or passed both insider the url (the GET way) and inside message body (the POST way))
params [Http_types.request]
params_GET [Http_types.request]
params_POST [Http_types.request]
path [Http_types.request]

R
reason [Http_types.response]
removeHeader [Http_types.message]
removeHeader [Http_message.message]
remove _all_ occurences of an HTTP header from the message
replaceHeader [Http_types.message]
replaceHeader [Http_message.message]
like addHeader but replace previous definition of the same header
replaceHeaders [Http_types.message]
replaceHeaders [Http_message.message]
like addHeaders but replace previous definition of headers that were already defined
respond_with [Http_types.connection]
respond to client sending it a response

S
serialize [Http_types.message]
serialize [Http_message.message]
serialize the message over an output channel
server [Http_types.response]
serverAddr [Http_types.message]
serverAddr [Http_message.message]
serverPort [Http_types.message]
serverPort [Http_message.message]
serverSockaddr [Http_types.message]
serverSockaddr [Http_message.message]
setBody [Http_types.message]
setBody [Http_message.message]
set message body
setBodyBuf [Http_types.message]
setBodyBuf [Http_message.message]
set a new Buffer.t used to keep message body
setCode [Http_types.response]
set response code
setContentEncoding [Http_types.response]
set Content-Encoding header value
setContentType [Http_types.response]
set Content-Type header value
setDate [Http_types.response]
set Date header value
setExpires [Http_types.response]
set Expires header value
setReason [Http_types.response]
set reason string
setServer [Http_types.response]
set Server header value
setStatus [Http_types.response]
set response status
setStatusLine [Http_types.response]
set status line
setVersion [Http_types.message]
setVersion [Http_message.message]
set message HTTP version
status [Http_types.response]
statusLine [Http_types.response]

T
toString [Http_types.message]
toString [Http_message.message]

U
uri [Http_types.request]

V
version [Http_types.message]
version [Http_message.message]