Module mochiweb_http

HTTP server.

Copyright © 2007 Mochi Media, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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

Description

HTTP server.

Function Index

after_response/2
loop/3
parse_range_request/1
range_skip_length/2
reentry/1
start/1Start a mochiweb server.
start_link/1
stop/0
stop/1

Function Details

after_response/2

after_response(Body, Req) -> any()

loop/3

loop(Socket, Opts, Body) -> any()

parse_range_request/1

parse_range_request(RawRange) -> any()

range_skip_length/2

range_skip_length(Spec, Size) -> any()

reentry/1

reentry(Body) -> any()

start/1

start(Options) -> ServerRet

Start a mochiweb server. profile_fun is used to profile accept timing. After each accept, if defined, profile_fun is called with a proplist of a subset of the mochiweb_socket_server state and timing information. The proplist is as follows: [{name, Name}, {port, Port}, {active_sockets, ActiveSockets}, {timing, Timing}].

start_link/1

start_link(Options) -> any()

stop/0

stop() -> any()

stop/1

stop(Name) -> any()


Generated by EDoc