C# Webserver |
HttpResponse Members |
HttpResponse Class Constructors Methods Properties See Also Send Feedback |
The HttpResponse type exposes the following members.
Constructors
Name | Description | |
---|---|---|
HttpResponse | Initializes a new instance of the HttpResponse class |
Methods
Name | Description | |
---|---|---|
AddHeader |
Add another header to the document.
| |
Equals | (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.) | |
Redirect | Overloaded. | |
Send |
Send headers and body to the browser.
| |
SendBody | Overloaded. | |
SendHeaders |
Send headers to the client.
| |
ToString | (Inherited from Object.) |
Properties
Name | Description | |
---|---|---|
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.
|