mochiweb_response

Response abstraction.

Response abstraction.

Functions


dump() -> {mochiweb_request, [{atom(), term()}]}

Dump the internal representation to a "human readable" set of terms for debugging/inspection purposes.

get(X1::request | code | headers) -> term()

Return the internal representation of the given field.

get_header_value(K::string() | atom() | binary()) -> string() | undefined

Get the value of the given response header.

send(Data::iodata()) -> ok

Send data over the socket if the method is not HEAD.

write_chunk(Data::iodata()) -> ok

Write a chunk of a HTTP chunked response. If Data is zero length, then the chunked response will be finished.

Bob Ippolito bob@mochimedia.com
View Functions