Class Request
Represents a http request to be made by IronWebScraper
Inheritance
System.Object
Request
Namespace: IronWebScraper
Assembly: IronWebScraper.dll
Syntax
public class Request : Object
Constructors
Request()
Declaration
public Request()
Fields
Action
The Action<Response> which will be used to parse the response. See IronWebScraper.Parse.
Declaration
public Action<Response> Action
Field Value
Type | Description |
---|---|
System.Action<Response> |
Identity
An HttpIdentity comprising Proxy, Headers, UserAgnet etc.. which will be used to fetch the Request.
Declaration
public HttpIdentity Identity
Field Value
Type | Description |
---|---|
HttpIdentity |
MetaData
Allows additional meta-data of any Type to be attached to a request, and retrieved when the subsequent Response is parsed.
Declaration
public MetaData MetaData
Field Value
Type | Description |
---|---|
MetaData |
Properties
Method
Http Request method.
Declaration
public string Method { get; }
Property Value
Type | Description |
---|---|
System.String | "GET" or "POST" |
Retries
Number of attempts which have been made to fetch content from this Request so far.
Declaration
public int Retries { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Url
Absolute URL to be scraped.
Declaration
public string Url { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
Hash(Request)
Hashing function for uniquely identifying web requests.
Declaration
public static string Hash(Request request)
Parameters
Type | Name | Description |
---|---|---|
Request | request | A Request object |
Returns
Type | Description |
---|---|
System.String |