ibrowse_lib

Module with a few useful functions.

Module with a few useful functions

Functions


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(List::In) -> Out | exit({error, invalid_input})

  • In = string() | binary()
  • Out = string() | binary()

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

decode_rfc822_date(String) -> term()

do_trace(Fmt, Args) -> term()

do_trace(X1, Fmt, Args) -> term()

do_trace(X1, Fmt, Args) -> term()

drv_ue(Str) -> term()

drv_ue(Str, Port) -> term()

encode_base64(List::In) -> Out

  • In = string() | binary()
  • Out = string() | binary()

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

get_trace_status(Host, Port) -> term()

get_value(Tag, TVL) -> term()

get_value(Tag, TVL, DefVal) -> term()

parse_url(Url) -> term()

printable_date() -> term()

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

  • string() | integer()
  • StatusDescription = atom()

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

url_encode(Str) -> UrlEncodedStr

  • Str = string()
  • UrlEncodedStr = string()

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

View Functions