C# Class P2PStateServer.HTTPMethod

Represents a parser for the first line of a HTTP request or response.
The HTTPMethod class parses the first line of a HTTP request or response and provides properties for the parsed components.
Show file Open project: tenor/p2pStateServer Class Usage Examples

Public Properties

Property Type Description
RequestMethod RequestMethods
Resource string
ResponseCode int
Type HTTPMessageType

Public Methods

Method Description
HTTPMethod ( string Line ) : System

Initializes a new instance of the HTTPMethod class

Method Details

HTTPMethod() public method

Initializes a new instance of the HTTPMethod class
public HTTPMethod ( string Line ) : System
Line string the line to parse
return System

Property Details

RequestMethod public property

The message request method if the message is a request
public RequestMethods RequestMethod
return RequestMethods

Resource public property

The resource URI of the message
public string Resource
return string

ResponseCode public property

The message response code if the message is a response
public int ResponseCode
return int

Type public property

The determined Type of the message
public HTTPMessageType Type
return HTTPMessageType