• 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 HttpResponseParser

Parses a string into a or throws an exception.

Inheritance
System.Object
HttpParserBase<System.Net.Http.HttpResponseMessage>
HttpResponseParser
Inherited Members
HttpParserBase<Http.HttpResponseMessage>.Parse(Http.HttpResponseMessage, Http.Headers.HttpHeaders, String)
HttpParserBase<Http.HttpResponseMessage>.ParseStatusLine(String, Http.HttpResponseMessage)
HttpParserBase<Http.HttpResponseMessage>.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 HttpResponseParser : HttpParserBase<Http.HttpResponseMessage>

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

A boolean, true if th specified header relates to HTTP content, otherwise false.

Overrides
Rssdp.Infrastructure.HttpParserBase<System.Net.Http.HttpResponseMessage>.IsContentHeader(System.String)

Parse(String)

Parses the specified data into a instance.

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

A string containing the data to parse.

Returns
Type Description
HttpResponseMessage

A instance containing the parsed data.

Overrides
Rssdp.Infrastructure.HttpParserBase<System.Net.Http.HttpResponseMessage>.Parse(System.String)

ParseStatusLine(String, HttpResponseMessage)

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, HttpResponseMessage message)
Parameters
Type Name Description
System.String data

The first line of the HTTP message to be parsed.

HttpResponseMessage message

Either a or to assign the parsed values to.

In This Article
Back to top Copyright (c) 2015 Troy Willmot