• API Documentation
Show / Hide Table of Contents
  • Rssdp
    • AggregateSsdpDeviceLocator
    • CustomHttpHeader
    • CustomHttpHeadersCollection
    • DeviceAvailableEventArgs
    • DeviceEventArgs
    • DeviceNetworkType
    • DeviceNetworkTypeExtensions
    • DeviceUnavailableEventArgs
    • DiscoveredSsdpDevice
    • ExceptionExtensions
    • ISsdpLogger
    • NullLogger
    • ServiceEventArgs
    • SocketClosedException
    • SocketFactory
    • SsdpDevice
    • SsdpDeviceExtensions
    • SsdpDeviceIcon
    • SsdpDeviceLocator
    • SsdpDevicePropertiesCollection
    • SsdpDeviceProperty
    • SsdpDevicePublisher
    • SsdpEmbeddedDevice
    • SsdpRootDevice
    • SsdpService
    • SsdpStandardsMode
    • SsdpTraceLogger
  • Rssdp.Infrastructure
    • DisposableManagedObjectBase
    • HttpParserBase<T>
    • HttpRequestParser
    • HttpResponseParser
    • ISocketFactory
    • ISsdpCommunicationsServer
    • ISsdpDeviceLocator
    • ISsdpDevicePublisher
    • IUdpSocket
    • IUpnpDeviceValidator
    • ReceivedUdpData
    • RequestReceivedEventArgs
    • ResponseReceivedEventArgs
    • SsdpCommunicationsServer
    • SsdpConstants
    • SsdpDeviceLocatorBase
    • SsdpDevicePublisherBase
    • UdpEndPoint
    • Upnp10DeviceValidator

Class HttpRequestParser

Parses a string into a or throws an exception.

Inheritance
System.Object
HttpParserBase<HttpRequestMessage>
HttpRequestParser
Inherited Members
HttpParserBase<HttpRequestMessage>.Parse(HttpRequestMessage, Http.Headers.HttpHeaders, String)
HttpParserBase<HttpRequestMessage>.ParseHttpVersion(String)
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Rssdp.Infrastructure
Assembly: cs.temp.dll.dll
Syntax
public sealed class HttpRequestParser : HttpParserBase<HttpRequestMessage>

Methods

IsContentHeader(String)

Returns a boolean indicating whether the specified HTTP header name represents a content header (true), or a message header (false).

Declaration
protected override bool IsContentHeader(string headerName)
Parameters
Type Name Description
System.String headerName

A string containing the name of the header to return the type of.

Returns
Type Description
System.Boolean
Overrides
Rssdp.Infrastructure.HttpParserBase<HttpRequestMessage>.IsContentHeader(System.String)

Parse(String)

Parses the specified data into a instance.

Declaration
public override Http.HttpRequestMessage Parse(string data)
Parameters
Type Name Description
System.String data

A string containing the data to parse.

Returns
Type Description
System.Net.Http.HttpRequestMessage

A instance containing the parsed data.

Overrides
Rssdp.Infrastructure.HttpParserBase<HttpRequestMessage>.Parse(System.String)

ParseStatusLine(String, HttpRequestMessage)

Used to parse the first line of an HTTP request or response and assign the values to the appropriate properties on the message.

Declaration
protected override void ParseStatusLine(string data, HttpRequestMessage message)
Parameters
Type Name Description
System.String data

The first line of the HTTP message to be parsed.

HttpRequestMessage message

Either a or to assign the parsed values to.

Overrides
Rssdp.Infrastructure.HttpParserBase<HttpRequestMessage>.ParseStatusLine(System.String, HttpRequestMessage)
In This Article
Back to top Copyright (c) 2015 Troy Willmot