References
| get_amz_headers/1 | Retrieve AMZ-S3-related headers. |
| get_amz_headers4cow/1 | Retrieve AMZ-S3-related headers for Cowboy. |
| get_headers/2 | Retrieve AMZ-S3-related headers assume that TreeHeaders is generated by mochiweb_header. |
| get_headers/3 | Retrieve AMZ-S3-related headers assume that TreeHeaders is generated by mochiweb_header. |
| get_headers4cow/2 | Retrieve headers for cowboy. |
| get_headers4cow/3 | Retrieve headers for Cowboy. |
| key/2 | Retrieve a filename(KEY) from Host and Path. |
| key/3 | Retrieve a filename(KEY) from Host and Path. |
| rfc1123_date/1 | Retrieve RFC-1123 formated data. |
| url_encode/2 | URL encode a string binary. |
| web_date/1 | Convert gregorian seconds to date formated data( YYYY-MM-DDTHH:MI:SS000Z ). |
Retrieve AMZ-S3-related headers
get_amz_headers4cow(ListHeaders) -> [{string(), string()}]
ListHeaders = [{binary(), binary()}]
Retrieve AMZ-S3-related headers for Cowboy
Retrieve AMZ-S3-related headers assume that TreeHeaders is generated by mochiweb_header
get_headers(TreeHeaders, FilterFun, Acc) -> list()
TreeHeaders = gb_trees:iter()FilterFun = function()Acc = [any()]
Retrieve AMZ-S3-related headers assume that TreeHeaders is generated by mochiweb_header
get_headers4cow(Headers, FilterFun) -> list()
Headers = [any()]FilterFun = function()
Retrieve headers for cowboy
get_headers4cow(Headers, FilterFun, Acc) -> [{string(), string()}]
Headers = [{binary(), binary()}]FilterFun = function()Acc = [any()]
Retrieve headers for Cowboy
key(Host, Path) -> {binary(), binary()}
Host = binary()Path = binary()
Retrieve a filename(KEY) from Host and Path.
key(EndPoints, Host, Path) -> {binary(), binary()}
EndPoints = [binary()]Host = binary()Path = binary()
Retrieve a filename(KEY) from Host and Path.
rfc1123_date(DateSec) -> string()
DateSec = integer()
Retrieve RFC-1123 formated data
url_encode(Bin::binary(), Opts::[noplus | upper | noslash]) -> binary()
URL encode a string binary.
The noplus option disables the default behaviour of quoting space
characters, \s, as +. The upper option overrides the default behaviour
of writing hex numbers using lowecase letters to using uppercase letters
instead.
web_date(GregSec) -> string()
GregSec = integer()
Convert gregorian seconds to date formated data( YYYY-MM-DDTHH:MI:SS000Z )
Generated by EDoc