Share via


HttpListenerRequest Members

The following tables list the members exposed by the HttpListenerRequest type.

Public Properties

Name Description
Public Property AcceptTypes Gets the MIME types accepted by the client.
Public Property ContentLength64 Gets the length of the body data included in the request.
Public Property ContentType Gets the MIME type of the body data included in the request.
Public Property Credentials Gets the user's network credentials, if the user has sent a user name and password.
Public Property Headers Gets the collection of header name/value pairs sent in the request.
Public Property HttpMethod Gets the HTTP method specified by the client.
Public Property InputStream Gets a stream that contains the body data sent by the client.
Public Property IsAuthenticated Gets a Boolean value that indicates whether the client sending this request is authenticated.
Public Property KeepAlive Gets a value that indicates whether the client requests a persistent connection.
Public Property LocalEndPoint Gets the server IP address and port number to which the request is directed. Not currently supported.
Public Property ProtocolVersion Gets the HTTP version used by the requesting client.
Public Property RawUrl Gets the URL information (without the host and port) requested by the client.
Public Property RemoteEndPoint Gets the client IP address and port number from which the request originated.
Public Property Url Gets the Uri object requested by the client. Not currently supported.
Public Property UserAgent Gets the user agent presented by the client.
Public Property UserHostAddress Gets the server IP address and port number to which the request is directed.
Public Property UserHostName Gets the DNS name and, if provided, the port number specified by the client.
Public Property UserLanguages Gets the natural languages that are preferred for the response.

Public Methods

Name Description
Public Method Equals (Inherited from Object.)
Public Method GetHashCode (Inherited from Object.)
Public Method GetType (Inherited from Object.)
Public Method ReferenceEquals (Inherited from Object.)
Public Method ToString (Inherited from Object.)

Protected Methods

Name Description
Protected Method Finalize (Inherited from Object.)
Protected Method MemberwiseClone (Inherited from Object.)

See Also

Reference

HttpListenerRequest Class
System.Net Namespace