Module cowmachine_response

Response functions, generate the response inclusive body and headers.

Copyright © 2007-2009 Basho Technologies Based on mochiweb_request.erl, which is Copyright 2007 Mochi Media, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Authors: Justin Sheehy (justin@basho.com), Andy Gross (andy@basho.com).

Description

Response functions, generate the response inclusive body and headers. The body can be sourced from multiple sources. These sources include files, binary files and functions. The response body function handles range requests.

Function Index

send_response/1
send_stream_body/2
server_header/0

Function Details

send_response/1

send_response(Context::cowmachine_req:context()) -> {ok, Req, Env} | {stop, Req}

send_stream_body/2

send_stream_body(WriterFun, Context) -> any()

server_header/0

server_header() -> any()


Generated by EDoc