Request MethodsC# API
The Request type exposes the following members.
Methods

  NameDescription
Public methodAddKeepSubRequestContentType
Adds a Content-Type fragment, so the content of sub-request responses that match the specified Content-Type fragment will be kept.
Public methodAddKeepSubRequestContentUrl
Adds a URL, so the content of sub-request responses that match the specified URL fragment will be kept.
Public methodAddSubRequest(String)
Adds a URL to the list of sub-requests that will be fetched from the web server when this Request is sent.
Public methodAddSubRequest(Url)
Adds a Url to the list of sub-requests that will be fetched from the web server when this Request is sent.
Public methodAddSubRequest(Protocol, IpEndPoint, String)
Adds a URL to the list of sub-requests that will be fetched from the web server when this Request is sent.
Public methodClearHeaders
Clears the list of HTTP headers for this Request.
Public methodContainsHeader
Determines whether this Request contains a particular HTTP header.
Public methodDispose
Public methodEnd
Ends this request - this method should be called when either SendTopLevel  or SendSubRequests(Response) has been called. It tells eggPlant Performance that no more HTTP requests will be made as part of this Request object.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetContentTypeFragments
Gets a list of all the Content-Type fragments for which the content of sub-request responses will be kept.
Public methodGetContentUrlFragments
Gets a list of all the URL fragments for which the content of sub-request responses will be kept.
Public methodStatic membergetCPtr
For internal use only. Of no interest to the user.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetHeaderValue
Gets the value of the specified HTTP request header.
Public methodGetHttpStatusCategory
Returns registered status category for the given http status.
Public methodGetMessageBody
Gets the body of the HTTP request that will be sent to the server.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIgnoreSubRequest(String)
Specifies a URL that will be ignored when fetching sub-requests from the web server.
Public methodIgnoreSubRequest(Url)
Specifies a Url that will be ignored when fetching sub-requests from the web server.
Public methodIgnoreSubRequest(Protocol, IpEndPoint, String)
Specifies a URL that will be ignored when fetching sub-requests from the web server.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRemoveHeader
Removes an HTTP header from this Request.
Public methodRemoveKeepSubRequestContentType
Removes a Content-Type fragment, so the content of sub-request responses that match the specified Content-Type fragment will no longer be kept.
Public methodRemoveKeepSubRequestContentUrl
Removes a URL, so the content of sub-request responses that match the specified URL fragment will no longer be kept.
Public methodSend
Sends this request and any sub-requests to the web server, and waits for all the responses to be served.
Public methodSendSubRequests
Sends the sub-requests for this request to the web server, and waits for the responses.
Public methodSendTopLevel
Sends this request to the web server, and waits for the response to be served, but doesn't send any sub-requests. This is unlike Send  which also sends sub-requests. You can send the sub-requests later by calling SendSubRequests(Response).
Public methodSetHeader(String)
Sets an HTTP header for this Request, using the contents of the specified string.
Public methodSetHeader(String, String)
Sets an HTTP header for this Request, as a name/value pair.
Public methodSetHttpStatusCategory(HttpStatus, HttpStatusCategory)
Registeres the provided http status code against predefined category.
Public methodSetHttpStatusCategory(HttpStatusRange, HttpStatusCategory)
Registeres the provided http status code range against predefined category.
Public methodSetKeepAlive
Sets the value of the "Connection" request header.
Public methodSetMessageBody( Byte )
Sets the body of the HTTP request that will be sent to the server. This method is normally used with a POST or PUT request.
Public methodSetMessageBody(String)
Sets the body of the HTTP request that will be sent to the server. This method is normally used with a POST or PUT request.
Public methodSetMessageBody(Form)
Sets the body of the HTTP request that will be sent to the server, as name/value pairs extracted from the specified Form object.
Public methodSetMessageBody(String, Encoding)
Sets the body of the HTTP request that will be sent to the server, specifying the character encoding to use to encode the post data. This method is normally used with a POST or PUT request.
Public methodSetMessageBodyFromFile
Sets the body of the HTTP request that will be sent to the server, by loading data from a data file.
Public methodSetOffsetEdit
Sets an OffsetEditSequence object to be applied to the message body of this Request object, immediately before the request is sent to the web server.
Public methodSetReferer
Sets the value of the "Referer" HTTP header.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUnsetReferer
Removes the "Referer" HTTP header.
Back to Top
See Also