class type response = object
.. end
HTTP responses
Inherits
method code : int
Returns response code
method setCode : int -> unit
set response code
method status : status
Returns response status
method setStatus : status -> unit
set response status
method reason : string
Returns reason string
method setReason : string -> unit
set reason string
method statusLine : string
Returns status line
method setStatusLine : string -> unit
set status line
Raises Invalid_status_line
if an invalid HTTP status line was passed
method isInformational : bool
response is an informational one
method isSuccess : bool
response is a success one
method isRedirection : bool
response is a redirection one
method isClientError : bool
response is a client error one
method isServerError : bool
response is a server error one
method isError : bool
response is either a client error or a server error response
method addBasicHeaders : unit
facilities to access some frequently used headers
method contentType : string
Returns Content-Type header value
method setContentType : string -> unit
set Content-Type header value
method contentEncoding : string
Returns Content-Encoding header value
method setContentEncoding : string -> unit
set Content-Encoding header value
method date : string
Returns Date header value
method setDate : string -> unit
set Date header value
method expires : string
Returns Expires header value
method setExpires : string -> unit
set Expires header value
method server : string
Returns Server header value
method setServer : string -> unit
set Server header value