Class HttpResponseParser
Parses a string into a
Inherited Members
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
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 |
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 |