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.
Datei anzeigen 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_oe property

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

Resource public_oe property

The resource URI of the message
public string Resource
return string

ResponseCode public_oe property

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

Type public_oe property

The determined Type of the message
public HTTPMessageType Type
return HTTPMessageType