This class represents a HTTP request. It is mostly used internally but can also be used by application developers if creating requests programmatically rather then passing on requests from a client application such as a web browser.


The following tables list the members exposed by Request.

Public Constructors

  Name Description
Public method Request Constructs a new Request object
Top

Public Properties

  Name Description
Public property ContentLength The length of the content if a body is present in the request
Public property ContentReceived The amount of the content yet received
Public property ContentStream A stream to access the content
Public property FinishTime The time at which the request was completed
Public property Headers The headers of the HTTP request
Public property Method The HTTP method to be used in the request (ie. GET, POST etc.)
Public property StartTime The time at which the request started
Public property Url The Url of the resource being requested
Public property Version The HTTP version being used
Top

Public Methods

  Name Description
Public method Clone Clones a request so that a new request can be generated without altering the state of the original request.
Public method Equals Determines whether the specified Object is equal to the current Object. (inherited from Object)
Public method GetHashCode Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (inherited from Object)
Public method GetHeader Helper function to get a header from the request headers
Public method GetType Gets the Type of the current instance. (inherited from Object)
Public method ToString Returns a String that represents the current Object. (inherited from Object)
Top

Protected Methods

  Name Description
Family method Finalize Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Family method MemberwiseClone Creates a shallow copy of the current Object. (inherited from Object)
Top

See Also