Request MembersC# API

The Request type exposes the following members.
Constructors

  NameDescription
Public methodRequest
For internal use only. Of no interest to the user.
Back to Top
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
Releases all resources used by the Request
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
Properties

  NameDescription
Public propertyCharactersAllowedInPostedForm
Gets or sets the characters that will NOT be percent-encoded when a Form is sent to the web server using a POST request.
Public propertyChunkSize
Gets or sets the size in bytes of each chunk when sending data using Transfer-Encoding: chunked
Public propertyContentType
Gets or sets the value of the "Content-Type" HTTP header.
Public propertyFollowRedirects
Gets or sets a value that indicates whether redirects will automatically be followed for this Request.
Public propertyHasReferer
Gets a value that indicates whether the "Referer" HTTP header has been set for this Request.
Public propertyHeaderKeys
Gets a list of names of all the HTTP request headers set in this Request.
Public propertyID
Gets the unique ID that has been assigned to this Request.
Public propertyIgnoredSubRequests
Gets or sets the list of sub-requests that will be ignored when fetching sub-requests from the web server.
Public propertyIncludeQueryDataInLabels
Gets or sets a value that indicates whether URLs with different query data should be considered different from each other for analysis purposes.
Public propertyIsDynatraceIntegrationEnabled
Gets or sets a value that indicates whether dynaTrace integration is enabled.
Public propertyKeepAllSubRequestContent
Gets or sets a value that indicates whether the content of responses to sub-requests will be kept.
Public propertyKeepContent
Gets or sets a value that indicates whether the content of responses will be kept.
Public propertyMethod
Gets the HTTP method that this Request uses (e.g. GET or POST)
Public propertyReference
Gets the reference id that was passed to the CreateRequest(HttpMethod, Url, Int32) method when this Request object was created.
Public propertyReferer
Gets or sets the value of the "Referer" HTTP header.
Public propertyRetrieveSubRequests
Gets or sets a value that indicates whether sub-requests will be retrieved for this Request.
Public propertySubRequests
Gets or sets the list of sub-requests that will be fetched from the web server by this request. The sub-requests will be fetched when Send  or SendSubRequests(Response) are called.
Public propertySubRequestThreadCount
Gets or sets the number of threads that will be used to fetch sub-requests from the web server.
Public propertyTimeEveryHttpRequest
Gets or sets a value that indicates whether sub-requests will be timed as well as top-level HTTP requests.
Public propertyUrl
Gets or sets the Url that this Request is targeting.
Public propertyUserAgent
Gets or sets the value of the "User-Agent" HTTP header.
Public propertyVersion
Gets or sets the HTTP version as a string.
Back to Top
See Also