Click or drag to resize

HttpServerResponse Properties

The HttpServerResponse type exposes the following members.

Properties
 NameDescription
Protected propertyClient Always False.
(Overrides HttpRequestResponseClient)
Public propertyCloseStream When ContentSource is set to ContentStream (and a ContentStream is assigned), this property determines if the stream should be closed automatically after sending it to the connection (true) or not (false).
(Inherited from HttpOutgoingRequestResponse)
Public propertyCode Gets or sets the HTTP status code of the response. The default value is 200.
Public propertyContentBytes Assigns a byte array to send back as the HTTP body to this property.
(Inherited from HttpOutgoingRequestResponse)
Public propertyContentSource Defines which property (ContentBytes, ContentStream or ContentString) will be used to send the body of the response. Assigning any of these three properties will automatically set the ContentSource property so that the content will always be sent from the appropriate source.
(Inherited from HttpOutgoingRequestResponse)
Public propertyContentStream Assigns a stream to send back as HTTP body to this property. When assigned (and ContentSource is set to ContentStream), you can use the CloseStream property to determine if the stream should be closed automatically after sending it to the connection (true) or not (false).
(Inherited from HttpOutgoingRequestResponse)
Public propertyContentString Assigns a string to send back as HTTP body to this property.
(Inherited from HttpOutgoingRequestResponse)
Public propertyEncoding Determines the Encoding for the HTTP Request Response
(Inherited from HttpRequestResponse)
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 Determines the keep alive status of the HTTP Outgoing Request Response.
(Inherited from HttpOutgoingRequestResponse)
Public propertyResponseText Gets or sets the HTTP status code description (For example, OK when the Code is 200). It is up to the caller to ensure that the Code and the ResponseText values correspond to each other. The default value is OK.
Protected propertyServer Always True.
(Overrides HttpRequestResponseServer)
Public propertyThisClient Gets the Client that is host to this Async request
(Inherited from HttpRequestResponse)
Top
See Also