InetHeader is a simple helper class for parsing internet header texts (RFC822). In addition, InetHeader also detects "set-cookie" headers and parses the content according to cookie syntax (this can be ignored if header is not HTTP related).
Http fields as key-value pairs. Keys are converted to lower-case. Note that the same key can be present multiple times.
Set of http response http cookies (filled based on Set-Cookie headers during parsing).
Clears data.
Parses the header (all lines of header) into first_line and fields.
Calls Clear and parses the header (all lines of header) into first_line and fields.
Returns the value of first cookie of response (set by Set-Cookie) with name id.
Returns the first http header field with key id (must be lower-case) or empty string if such field is not present.
|