Unosquare
    Show / Hide Table of Contents

    Class SystemHttpResponse

    Represents a wrapper for HttpListenerContext.Response.

    Inheritance
    Object
    SystemHttpResponse
    Implements
    IHttpResponse
    IHttpMessage
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: EmbedIO.Net.Internal
    Syntax
    public class SystemHttpResponse : IHttpResponse, IHttpMessage

    Constructors

    SystemHttpResponse(Net.HttpListenerContext)

    Initializes a new instance of the SystemHttpResponse class.

    Declaration
    public SystemHttpResponse(Net.HttpListenerContext context)
    Parameters
    Type Name Description
    Net.HttpListenerContext context

    The context.

    Properties

    ContentEncoding

    Gets or sets the content encoding.

    Declaration
    public Encoding? ContentEncoding { get; set; }
    Property Value
    Type Description
    Nullable<Encoding>

    ContentLength64

    Gets or sets the content length.

    Declaration
    public long ContentLength64 { get; set; }
    Property Value
    Type Description
    Int64

    ContentType

    Gets or sets the type of the content.

    Declaration
    public string ContentType { get; set; }
    Property Value
    Type Description
    String

    Cookies

    Gets the cookies.

    Declaration
    public ICookieCollection Cookies { get; }
    Property Value
    Type Description
    ICookieCollection

    The cookies.

    Headers

    Gets the response headers.

    Declaration
    public WebHeaderCollection Headers { get; }
    Property Value
    Type Description
    WebHeaderCollection

    KeepAlive

    Gets or sets a value indicating whether [keep alive].

    Declaration
    public bool KeepAlive { get; set; }
    Property Value
    Type Description
    Boolean

    OutputStream

    Gets the output stream.

    Declaration
    public Stream OutputStream { get; }
    Property Value
    Type Description
    Stream

    ProtocolVersion

    Gets or sets the protocol version.

    Declaration
    public Version ProtocolVersion { get; set; }
    Property Value
    Type Description
    Version

    The protocol version.

    SendChunked

    Gets or sets a value indicating whether the response uses chunked transfer encoding.

    Declaration
    public bool SendChunked { get; set; }
    Property Value
    Type Description
    Boolean

    StatusCode

    Gets or sets the status code.

    Declaration
    public int StatusCode { get; set; }
    Property Value
    Type Description
    Int32

    StatusDescription

    Gets or sets a text description of the HTTP status code.

    Declaration
    public string StatusDescription { get; set; }
    Property Value
    Type Description
    String

    Methods

    Close()

    Closes this instance and dispose the resources.

    Declaration
    public void Close()

    SetCookie(Cookie)

    Sets the cookie.

    Declaration
    public void SetCookie(Cookie cookie)
    Parameters
    Type Name Description
    Cookie cookie

    The session cookie.

    Implements

    IHttpResponse
    IHttpMessage

    See Also

    IHttpResponse

    Comments

    Back to top Copyright © 2017-2019 Unosquare