Click or drag to resize

HttpIncomingRequestResponse Class

Base class representing an incoming HTTP message - either a request to be received by the HttpServer, or a response received by the HttpClient.
Inheritance Hierarchy

Namespace: Crestron.SimplSharp.Net.Http
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public abstract class HttpIncomingRequestResponse : HttpRequestResponse

The HttpIncomingRequestResponse type exposes the following members.

Constructors
 NameDescription
Protected methodHttpIncomingRequestResponse Creates an instance of the HttpIncomingRequestResponse Class
Top
Properties
 NameDescription
Public propertyChunked Determines whether data being transferred will be chunked or not.
Protected propertyClient Gets the Client property status for the HTTPRequestResponse.
(Inherited from HttpRequestResponse)
Public propertyContentBytes Returns the HTTP body in the form of a byte array. The stream unexpected ended.Error reading HTTP chunk data.
Public propertyContentLength Contains the ContentLength header value received from the remote side. If the remote did not provide a length (for example in HTTP 1.0 scenarios, or if Keep-Alive is not supported), accessing the property will raise an exception. Use the HasContentLength property to determine if a valid ContentLength has been received.
Public propertyContentStream Returns a Stream object with the HTTP body of the received request (server) or response (client). Because ContentStream provides you with direct access to the underlying Connection Stream, it is the fastest and most efficient way to access the response (as opposed to ContentString and ContentBytes, both of which involve copying the entire data from the stream into a memory buffer).
Public propertyContentString Returns the HTTP body in form of a String object. The stream unexpected ended.Error reading HTTP chunk data.
Public propertyDataConnection Gets the Data Connection for the HttpIncomingRequestResponse instance.
Public propertyEncoding Determines the Encoding for the HTTP Request Response
(Inherited from HttpRequestResponse)
Public propertyHasContentLength Specifies whether the HTTP header provides a ContentLength field.
Protected propertyHasOnTransferProgress Determines whether the current HTTPRequest Response has an OnTransferProgress event handler.
(Inherited from HttpRequestResponse)
Public propertyHeader Get or set the HTTP Response Header
(Inherited from HttpRequestResponse)
Public propertyIsCompleted Gets a value that indicates whether the asynchronous operation completed.
(Inherited from HttpRequestResponse)
Public propertyKeepAlive Keeps the HTTP Request Response connection alive. If enabled (true), once a request is made and a connection is established, this connection is kept open and used for future requests. If disabled, the connection is closed, and a new connection is created for future requests.
Protected propertyServer Gets the Server property status for the HTTPRequestResponse.
(Inherited from HttpRequestResponse)
Public propertyThisClient Gets the Client that is host to this Async request
(Inherited from HttpRequestResponse)
Top
Methods
 NameDescription
Public methodCloneEvents Clones the events of the HTTP Request Response.
(Inherited from HttpRequestResponse)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodFlushContent Flush the content of the HTTP Incoming Stream.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Protected methodTriggerOnTransferEnd Trigger the OnTransferEnd Event Handler
(Inherited from HttpRequestResponse)
Protected methodTriggerOnTransferProgress Trigger the OnTransferProgress Event Handler
(Inherited from HttpRequestResponse)
Protected methodTriggerOnTransferStart Trigger the OnTransferStart Event Handler
(Inherited from HttpRequestResponse)
Public methodValidate Validate that the HTTP Header "Transfer-Encoding" is not chunked.
Top
Events
 NameDescription
Public eventOnTransferEnd OnTransferEnd Event Handler
(Inherited from HttpRequestResponse)
Public eventOnTransferProgress OnTransferProgress Event Handler
(Inherited from HttpRequestResponse)
Public eventOnTransferStart OnTransferStart Event handler
(Inherited from HttpRequestResponse)
Top

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also