# Functions
AddHeader takes http payload and appends new header to the start of headers section Returns modified request payload.
Body returns request/response body.
DelHeader takes http payload and removes header name from headers section Returns modified request payload.
Header returns header value, if header not found, value will be blank.
Works only with ASCII.
No description provided by the author
Method returns HTTP method.
MIMEHeadersEndPos finds end of the Headers section, which should end with empty line.
MIMEHeadersStartPos finds start of Headers section It just finds position of second line (first contains location and method).
Parsing headers from multiple payloads.
Path takes payload and retuns request path: Split(firstLine, ' ')[1].
PathParam returns URL query attribute by given name, if no found: valueStart will be -1.
SetHeader sets header value.
SetHost updates Host header for HTTP/1.1 or updates host in path for HTTP/1.0 or Proxy requests Returns modified payload.
SetPath takes payload, sets new path and returns modified payload.
SetPathParam takes payload and updates path Query attribute If query param not found, it will append new Returns modified payload.
Status returns response status.
# Variables
In HTTP newline defined by 2 bytes (for both windows and *nix support).
New line acts as separator: end of Headers or Body (in some cases).
Separator for Header line.