HttpResponse Members

HttpServer.dll

The HttpResponse type exposes the following members.

Constructors

  NameDescription
HttpResponse
Initializes a new instance of the HttpResponse class

Methods

  NameDescription
AddHeader
Add another header to the document.
Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType
Gets the Type of the current instance.
(Inherited from Object.)
MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
RedirectOverloaded.
Send
Send headers and body to the browser.
SendBodyOverloaded.
SendHeaders
Send headers to the client.
ToString
Returns a String that represents the current Object.
(Inherited from Object.)

Properties

  NameDescription
Body
The body stream is used to cache the body contents before sending everything to the client. It's the simplest way to serve documents.
Chunked
The chunked encoding modifies the body of a message in order to transfer it as a series of chunks, each with its own size indicator, followed by an OPTIONAL trailer containing entity-header fields. This allows dynamically produced content to be transferred along with the information necessary for the recipient to verify that it has received the full message.
Connection
Kind of connection
ContentLength
Size of the body. MUST be specified before sending the header, unless property Chunked is set to true.
ContentType
Kind of content in the body
Cookies
Cookies that should be created/changed.
Encoding
Encoding to use when sending stuff to the client.
HeadersSent
Headers have been sent to the client-
KeepAlive
Number of seconds to keep connection alive
Reason
Information about why a specific status code was used.
Sent
The whole response have been sent.
Status
Status code that is sent to the client.

See Also