Click or drag to resize

SimulatedHttpRequest Class

Used to simulate an HttpRequest.
Inheritance Hierarchy

Namespace:  Enkoni.Framework.Testing
Assembly:  Enkoni.Framework.Testing (in Enkoni.Framework.Testing.dll) Version: 1.3.0.1
Syntax
public class SimulatedHttpRequest : SimpleWorkerRequest

The SimulatedHttpRequest type exposes the following members.

Constructors
  NameDescription
Public methodSimulatedHttpRequest
Initializes a new instance of the SimulatedHttpRequest class.
Top
Properties
  NameDescription
Public propertyMachineConfigPath
Gets the full physical path to the Machine.config file.
(Inherited from SimpleWorkerRequest.)
Public propertyMachineInstallDirectory
Gets the physical path to the directory where the ASP.NET binaries are installed.
(Inherited from SimpleWorkerRequest.)
Public propertyRequestTraceIdentifier
Gets the corresponding Event Tracking for Windows trace ID for the current request.
(Inherited from HttpWorkerRequest.)
Public propertyRootWebConfigPath
Gets the full physical path to the root Web.config file.
(Inherited from SimpleWorkerRequest.)
Top
Methods
  NameDescription
Public methodCloseConnection
Terminates the connection with the client.
(Inherited from HttpWorkerRequest.)
Public methodEndOfRequest
Notifies the HttpWorkerRequest that request processing for the current request is complete.
(Inherited from SimpleWorkerRequest.)
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 methodFlushResponse
Sends all pending response data to the client.
(Inherited from SimpleWorkerRequest.)
Public methodGetAppPath
Returns the virtual path to the currently executing server application.
(Inherited from SimpleWorkerRequest.)
Public methodGetAppPathTranslated
Returns the UNC-translated path to the currently executing server application.
(Inherited from SimpleWorkerRequest.)
Public methodGetAppPoolID
When overridden in a derived class, returns the application pool ID for the current URL.
(Inherited from HttpWorkerRequest.)
Public methodGetBytesRead
Gets the number of bytes read in from the client.
(Inherited from HttpWorkerRequest.)
Public methodGetClientCertificate
When overridden in a derived class, gets the certification fields (specified in the X.509 standard) from a request issued by the client.
(Inherited from HttpWorkerRequest.)
Public methodGetClientCertificateBinaryIssuer
Gets the certificate issuer, in binary format.
(Inherited from HttpWorkerRequest.)
Public methodGetClientCertificateEncoding
When overridden in a derived class, returns the Encoding object in which the client certificate was encoded.
(Inherited from HttpWorkerRequest.)
Public methodGetClientCertificatePublicKey
When overridden in a derived class, gets a PublicKey object associated with the client certificate.
(Inherited from HttpWorkerRequest.)
Public methodGetClientCertificateValidFrom
When overridden in a derived class, gets the date when the certificate becomes valid. The date varies with international settings.
(Inherited from HttpWorkerRequest.)
Public methodGetClientCertificateValidUntil
Gets the certificate expiration date.
(Inherited from HttpWorkerRequest.)
Public methodGetConnectionID
When overridden in a derived class, returns the ID of the current connection.
(Inherited from HttpWorkerRequest.)
Public methodGetFilePath
Returns the physical path to the requested URI.
(Inherited from SimpleWorkerRequest.)
Public methodGetFilePathTranslated
Returns the physical file path to the requested URI (and translates it from virtual path to physical path: for example, "/proj1/page.aspx" to "c:\dir\page.aspx")
(Inherited from SimpleWorkerRequest.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetHttpVerbName
Returns the HTTP request verb.
(Inherited from SimpleWorkerRequest.)
Public methodGetHttpVersion
Returns the HTTP version string of the request (for example, "HTTP/1.1").
(Inherited from SimpleWorkerRequest.)
Public methodGetKnownRequestHeader
Returns the standard HTTP request header that corresponds to the specified index.
(Inherited from HttpWorkerRequest.)
Public methodGetLocalAddress
Returns the server IP address of the interface on which the request was received.
(Inherited from SimpleWorkerRequest.)
Public methodGetLocalPort
Returns the port number on which the request was received.
(Inherited from SimpleWorkerRequest.)
Public methodGetPathInfo
Returns additional path information for a resource with a URL extension. That is, for the path /virdir/page.html/tail, the return value is /tail.
(Inherited from SimpleWorkerRequest.)
Public methodGetPreloadedEntityBody
Returns the portion of the HTTP request body that has already been read.
(Inherited from HttpWorkerRequest.)
Public methodGetPreloadedEntityBody(Byte, Int32)
Gets the portion of the HTTP request body that has currently been read by using the specified buffer data and byte offset.
(Inherited from HttpWorkerRequest.)
Public methodGetPreloadedEntityBodyLength
Gets the length of the portion of the HTTP request body that has currently been read.
(Inherited from HttpWorkerRequest.)
Public methodGetProtocol
When overridden in a derived class, returns the HTTP protocol (HTTP or HTTPS).
(Inherited from HttpWorkerRequest.)
Public methodGetQueryString
Returns the query string specified in the request URL.
(Inherited from SimpleWorkerRequest.)
Public methodGetQueryStringRawBytes
When overridden in a derived class, returns the response query string as an array of bytes.
(Inherited from HttpWorkerRequest.)
Public methodGetRawUrl
Returns the URL path contained in the header with the query string appended.
(Inherited from SimpleWorkerRequest.)
Public methodGetRemoteAddress
Returns the IP address of the client.
(Inherited from SimpleWorkerRequest.)
Public methodGetRemoteName
When overridden in a derived class, returns the name of the client computer.
(Inherited from HttpWorkerRequest.)
Public methodGetRemotePort
Returns the client's port number.
(Inherited from SimpleWorkerRequest.)
Public methodGetRequestReason
When overridden in a derived class, returns the reason for the request.
(Inherited from HttpWorkerRequest.)
Public methodGetServerName
Gets the name of the server.
(Overrides HttpWorkerRequestGetServerName.)
Public methodGetServerVariable
Returns a single server variable from a dictionary of server variables associated with the request.
(Inherited from SimpleWorkerRequest.)
Public methodGetTotalEntityBodyLength
Gets the length of the entire HTTP request body.
(Inherited from HttpWorkerRequest.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetUnknownRequestHeader
Returns a nonstandard HTTP request header value.
(Inherited from HttpWorkerRequest.)
Public methodGetUnknownRequestHeaders
Get all nonstandard HTTP header name-value pairs.
(Inherited from HttpWorkerRequest.)
Public methodGetUriPath
Returns the virtual path to the requested URI.
(Inherited from SimpleWorkerRequest.)
Public methodGetUrlContextID
When overridden in a derived class, returns the context ID of the current connection.
(Inherited from HttpWorkerRequest.)
Public methodGetUserToken
Returns the client's impersonation token.
(Inherited from SimpleWorkerRequest.)
Public methodGetVirtualPathToken
Gets the impersonation token for the request virtual path.
(Inherited from HttpWorkerRequest.)
Public methodHasEntityBody
Returns a value indicating whether the request contains body data.
(Inherited from HttpWorkerRequest.)
Public methodHeadersSent
Returns a value indicating whether HTTP response headers have been sent to the client for the current request.
(Inherited from HttpWorkerRequest.)
Public methodIsClientConnected
Returns a value indicating whether the client connection is still active.
(Inherited from HttpWorkerRequest.)
Public methodIsEntireEntityBodyIsPreloaded
Returns a value indicating whether all request data is available and no further reads from the client are required.
(Inherited from HttpWorkerRequest.)
Public methodIsSecure
Returns a value indicating whether the connection uses SSL.
(Inherited from HttpWorkerRequest.)
Public methodMapPath
Maps the path to a file system path.
(Overrides SimpleWorkerRequestMapPath(String).)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodReadEntityBody(Byte, Int32)
Reads request data from the client (when not preloaded).
(Inherited from HttpWorkerRequest.)
Public methodReadEntityBody(Byte, Int32, Int32)
Reads request data from the client (when not preloaded) by using the specified buffer to read from, byte offset, and maximum bytes.
(Inherited from HttpWorkerRequest.)
Public methodSendCalculatedContentLength(Int32)
Adds a Content-Length HTTP header to the response for message bodies that are less than or equal to 2 GB.
(Inherited from HttpWorkerRequest.)
Public methodSendCalculatedContentLength(Int64)
Adds a Content-Length HTTP header to the response for message bodies that are greater than 2 GB.
(Inherited from HttpWorkerRequest.)
Public methodSendKnownResponseHeader
Adds a standard HTTP header to the response.
(Inherited from SimpleWorkerRequest.)
Public methodSendResponseFromFile(String, Int64, Int64)
Adds the contents of the file with the specified name to the response and specifies the starting position in the file and the number of bytes to send.
(Inherited from SimpleWorkerRequest.)
Public methodSendResponseFromFile(IntPtr, Int64, Int64)
Adds the contents of the file with the specified handle to the response and specifies the starting position in the file and the number of bytes to send.
(Inherited from SimpleWorkerRequest.)
Public methodSendResponseFromMemory(Byte, Int32)
Adds the contents of a byte array to the response and specifies the number of bytes to send.
(Inherited from SimpleWorkerRequest.)
Public methodSendResponseFromMemory(IntPtr, Int32)
Adds the specified number of bytes from a block of memory to the response.
(Inherited from HttpWorkerRequest.)
Public methodSendStatus
Specifies the HTTP status code and status description of the response; for example, SendStatus(200, "Ok").
(Inherited from SimpleWorkerRequest.)
Public methodSendUnknownResponseHeader
Adds a nonstandard HTTP header to the response.
(Inherited from SimpleWorkerRequest.)
Public methodSetEndOfSendNotification
Registers for an optional notification when all the response data is sent.
(Inherited from HttpWorkerRequest.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also