Module yaws_headers

This module provides functions for getting and setting values of the Yaws 'headers' record.

Authors: Roberto Saccon (rsaccon@gmail.com).

Description

This module provides functions for getting and setting values of the Yaws 'headers' record. You can use these functions instead of using the record access syntax, and without having to include yaws_api.hrl.

As with yaws_arg, most functions have 2 variations: if it takes 1 parameter, it returns the record's value for the field, and if it takes two parameters, it returns a new record with the field having the new value.

Function Index

accept/1
accept/2
accept_ranges/1
accept_ranges/2
authorization/1
authorization/2
connection/1
connection/2
content_length/1
content_length/2
content_type/1
content_type/2
cookie/1
cookie/2
host/1
host/2
if_match/1
if_match/2
if_modified_since/1
if_modified_since/2
if_none_match/1
if_none_match/2
if_range/1
if_range/2
if_unmodified_since/1
if_unmodified_since/2
keep_alive/1
keep_alive/2
new/0Create a new 'headers' record.
other/1
other/2
range/1
range/2
referer/1
referer/2
user_agent/1
user_agent/2

Function Details

accept/1

accept(Arg) -> term()

accept/2

accept(Arg, Val) -> term()

accept_ranges/1

accept_ranges(Arg) -> term()

accept_ranges/2

accept_ranges(Arg, Val) -> term()

authorization/1

authorization(Arg) -> term()

authorization/2

authorization(Arg, Val) -> term()

connection/1

connection(Arg) -> term()

connection/2

connection(Arg, Val) -> term()

content_length/1

content_length(Arg) -> term()

content_length/2

content_length(Arg, Val) -> term()

content_type/1

content_type(Arg) -> term()

content_type/2

content_type(Arg, Val) -> term()

cookie/1

cookie(Arg) -> term()

cookie/2

cookie(Arg, Val) -> term()

host/1

host(Arg) -> term()

host/2

host(Arg, Val) -> term()

if_match/1

if_match(Arg) -> term()

if_match/2

if_match(Arg, Val) -> term()

if_modified_since/1

if_modified_since(Arg) -> term()

if_modified_since/2

if_modified_since(Arg, Val) -> term()

if_none_match/1

if_none_match(Arg) -> term()

if_none_match/2

if_none_match(Arg, Val) -> term()

if_range/1

if_range(Arg) -> term()

if_range/2

if_range(Arg, Val) -> term()

if_unmodified_since/1

if_unmodified_since(Arg) -> term()

if_unmodified_since/2

if_unmodified_since(Arg, Val) -> term()

keep_alive/1

keep_alive(Arg) -> term()

keep_alive/2

keep_alive(Arg, Val) -> term()

new/0

new() -> term()

Create a new 'headers' record.

other/1

other(Arg) -> term()

other/2

other(Arg, Val) -> term()

range/1

range(Arg) -> term()

range/2

range(Arg, Val) -> term()

referer/1

referer(Arg) -> term()

referer/2

referer(Arg, Val) -> term()

user_agent/1

user_agent(Arg) -> term()

user_agent/2

user_agent(Arg, Val) -> term()