Module ibrowse_lib

Module with a few useful functions.

Description

Module with a few useful functions

Function Index

dec2hex/2dec2hex taken from gtk.erl in std dist M = integer() -- number of hex digits required N = integer() -- the number to represent as hex.
decode_base64/1Implements the base64 decoding algorithm.
decode_rfc822_date/1
drv_ue/1
drv_ue/2
encode_base64/1Implements the base64 encoding algorithm.
status_code/1Given a status code, returns an atom describing the status code.
url_encode/1URL-encodes a string based on RFC 1738.

Function Details

dec2hex/2

dec2hex(M::integer(), N::integer()) -> string()

dec2hex taken from gtk.erl in std dist M = integer() -- number of hex digits required N = integer() -- the number to represent as hex

decode_base64/1

decode_base64(List::In) -> Out | exit({error, invalid_input})

Implements the base64 decoding algorithm. The output data type matches in the input data type.

decode_rfc822_date/1

decode_rfc822_date(String) -> term()

drv_ue/1

drv_ue(Str) -> term()

drv_ue/2

drv_ue(Str, Port) -> term()

encode_base64/1

encode_base64(List::In) -> Out

Implements the base64 encoding algorithm. The output data type matches in the input data type.

status_code/1

status_code(StatusCode::status_code()) -> StatusDescription

Given a status code, returns an atom describing the status code.

url_encode/1

url_encode(Str) -> UrlEncodedStr

URL-encodes a string based on RFC 1738. Returns a flat list.