Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site











SourceForge.net Logo

InetHeader

 

struct InetHeader

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).

 

Public Member List

 

VectorMap<String, Stringfields

Http fields as key-value pairs. Keys are converted to lower-case. Note that the same key can be present multiple times.

 


 

VectorMap<String, HttpCookiecookies

Set of http response http cookies (filled based on Set-Cookie headers during parsing).

 


 

void Clear()

Clears data.

 


 

bool ParseAdd(const String& hdrs)

Parses the header (all lines of header) into first_line and fields.

 


 

bool Parse(const String& hdrs)

Calls Clear and parses the header (all lines of header) into first_line and fields.

 


 

String GetCookie(const char *idconst

Returns the value of first cookie of response (set by Set-Cookie) with name id.

 


 

String operator[](const char *idconst

Returns the first http header field with key id (must be lower-case) or empty string if such field is not present.

 

 

Last edit by cxl on 10/08/2015. Do you want to contribute?. T++