Interface to create a HTTP Response.
Namespace: EmbedIO Syntaxpublic interface IHttpResponse : IHttpMessage
Properties ContentEncoding
Gets or sets the content encoding.
DeclarationEncoding? ContentEncoding { get; set; }
Property Value ContentLength64
Gets or sets the content length.
Declarationlong ContentLength64 { get; set; }
Property Value ContentType
Gets or sets the type of the content.
Declarationstring ContentType { get; set; }
Property Value
Gets the response headers.
DeclarationWebHeaderCollection Headers { get; }
Property Value Type Description WebHeaderCollection KeepAlive
Gets or sets a value indicating whether [keep alive].
Declarationbool KeepAlive { get; set; }
Property Value OutputStream
Gets the output stream.
DeclarationStream OutputStream { get; }
Property Value SendChunked
Gets or sets a value indicating whether the response uses chunked transfer encoding.
Declarationbool SendChunked { get; set; }
Property Value StatusCode
Gets or sets the status code.
Declarationint StatusCode { get; set; }
Property Value StatusDescription
Gets or sets a text description of the HTTP status code.
Declarationstring StatusDescription { get; set; }
Property Value Methods Close()
Closes this instance and dispose the resources.
Declaration SetCookie(Cookie)Sets the cookie.
Declarationvoid SetCookie(Cookie cookie)
Parameters Type Name Description Cookie cookie
The session cookie.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4