Search Results for

    Show / Hide Table of Contents

    Class Request

    Represents a http request to be made by IronWebScraper

    Inheritance
    System.Object
    Request
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ToString()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: IronWebScraper
    Assembly: IronWebScraper.dll
    Syntax
    public class Request

    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
    ☀
    ☾
    In This Article
    Back to top
    Install with Nuget