SimpleHttpRequest
public class SimpleHttpRequest
Constructor Summary | |
---|---|
SimpleHttpRequest(SimpleRoute route, string method, SimpleFormEncoding encoding) Saves the URL ready for fetching. |
Method Summary | |
---|---|
void | addHeaderLine(string header_line) Adds a header line to the request. |
SimpleHttpResponse | fetch(integer timeout) Fetches the content and parses the headers. |
void | setCookie(SimpleCookie cookie) Adds a cookie to the request. |
public SimpleHttpRequest(SimpleRoute route, string method, SimpleFormEncoding encoding)
Saves the URL ready for fetching.
public void addHeaderLine(string header_line)
Adds a header line to the request.
public SimpleHttpResponse fetch(integer timeout)
Fetches the content and parses the headers.
public void setCookie(SimpleCookie cookie)
Adds a cookie to the request.
HTTP request for a web page. Factory for HttpResponse object.