Unosquare
    Show / Hide Table of Contents

    Class SystemHttpRequest

    Represents a wrapper for HttpListenerContext.Request.

    Inheritance
    Object
    SystemHttpRequest
    Implements
    IHttpRequest
    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 SystemHttpRequest : IHttpRequest, IHttpMessage

    Constructors

    SystemHttpRequest(Net.HttpListenerContext)

    Initializes a new instance of the SystemHttpRequest class.

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

    The context.

    Properties

    ContentEncoding

    Gets the content encoding.

    Declaration
    public Encoding ContentEncoding { get; }
    Property Value
    Type Description
    Encoding

    ContentLength64

    Gets the content length.

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

    ContentType

    Gets the type of the content.

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

    Cookies

    Gets the cookies.

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

    The cookies.

    HasEntityBody

    Gets a value indicating whether this instance has entity body.

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

    Headers

    Gets the request headers.

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

    HttpMethod

    Gets the HTTP method.

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

    HttpVerb

    Gets a HttpVerb constant representing the HTTP method of the request.

    Declaration
    public HttpVerb HttpVerb { get; }
    Property Value
    Type Description
    HttpVerb

    InputStream

    Gets the input stream.

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

    IsAuthenticated

    Gets a value indicating whether this instance is authenticated.

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

    IsLocal

    Gets a value indicating whether this instance is local.

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

    IsSecureConnection

    Gets a value indicating whether this request has been received over a SSL connection.

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

    IsWebSocketRequest

    Gets a value indicating whether this instance is web socket request.

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

    KeepAlive

    Gets a value indicating whether [keep alive].

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

    LocalEndPoint

    Gets the local end point.

    Declaration
    public IPEndPoint LocalEndPoint { get; }
    Property Value
    Type Description
    IPEndPoint

    ProtocolVersion

    Gets or sets the protocol version.

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

    The protocol version.

    QueryString

    Gets the query string.

    Declaration
    public NameValueCollection QueryString { get; }
    Property Value
    Type Description
    NameValueCollection

    RawUrl

    Gets the raw URL.

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

    RemoteEndPoint

    Gets the remote end point.

    Declaration
    public IPEndPoint RemoteEndPoint { get; }
    Property Value
    Type Description
    IPEndPoint

    Url

    Gets the requested URL.

    Declaration
    public Uri Url { get; }
    Property Value
    Type Description
    Uri

    UrlReferrer

    Declaration
    public Uri UrlReferrer { get; }
    Property Value
    Type Description
    Uri

    UserAgent

    Gets the user agent.

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

    Implements

    IHttpRequest
    IHttpMessage

    See Also

    IHttpRequest

    Comments

    Back to top Copyright © 2017-2019 Unosquare