Namespace: ITHit.Server
The ResponseAsync type exposes the following members.
Name | Description | |
---|---|---|
ResponseAsync | Initializes a new instance of the ResponseAsync class |
Name | Description | |
---|---|---|
ContentEncoding |
Sets the HTTP character set of the output stream.
| |
ContentLength |
Sets the content length of the output stream.
| |
ContentType |
Sets the HTTP MIME type of the output stream.
| |
IsClientConnected |
Gets a valus indicating whether client is still connected.
| |
OutputStream |
Enables binary output to the outgoing HTTP content body.
| |
StatusCode |
Gets or sets the HTTP status code of the output returned to the client.
| |
StatusDescription |
Sets the HTTP status string of the output returned to the client.
|
Name | Description | |
---|---|---|
AddHeader |
Adds the specified header and value to the HTTP headers for this response.
| |
Clear |
Clears all content output from the buffer stream.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (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.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Usually you do not have to implement this class if you host your server in ASP.NET Core, ASP.NET, OWIN or HttpListener. The library provides ready to use context, request and response implementrations for each of the ablove environments.
You will derive your class from this class only if you need to host your server in any other environment from listed above and than pass instance of your class into the ContextAsyncTHierarchyItem constructor.