Abstract module mochiweb_response [Request, Code, Headers]

Response abstraction.

Copyright © 2007 Mochi Media, Inc.

Authors: Bob Ippolito (bob@mochimedia.com).

Description

Response abstraction.

Function Index

dump/0Dump the internal representation to a "human readable" set of terms for debugging/inspection purposes.
get/1Return the internal representation of the given field.
get_header_value/1Get the value of the given response header.
send/1Send data over the socket if the method is not HEAD.
write_chunk/1Write a chunk of a HTTP chunked response.

Function Details

dump/0

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

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

get/1

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

Return the internal representation of the given field.

get_header_value/1

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

Get the value of the given response header.

send/1

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

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

write_chunk/1

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.


Generated by EDoc, Aug 8 2008, 22:08:45.