logo

class

web::WebUtil

sys::Obj
  web::WebUtil

WebUtil encapsulates several useful utility web methods.

Slots

parseHeaders

static Str:Str parseHeaders(InStream in)

Parse a series of HTTP headers according to RFC 2616 section 4.2. The final CRLF which terminates headers is consumed with the stream positioned immediately following. The headers are returned as a case insensitive map. Throw IOErr if headers are malformed.

parseList

static Str[] parseList(Str s)

Parse a list of comma separated tokens. Any leading or trailing whitespace is trimmed from the list of tokens.