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.
Afficher le fichier Open project: tenor/p2pStateServer Class Usage Examples

Méthodes publiques

Свойство Type Description
RequestMethod RequestMethods
Resource string
ResponseCode int
Type HTTPMessageType

Méthodes publiques

Méthode Description
HTTPMethod ( string Line ) : System

Initializes a new instance of the HTTPMethod class

Method Details

HTTPMethod() public méthode

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

Property Details

RequestMethod public_oe property

The message request method if the message is a request
public RequestMethods RequestMethod
Résultat RequestMethods

Resource public_oe property

The resource URI of the message
public string Resource
Résultat string

ResponseCode public_oe property

The message response code if the message is a response
public int ResponseCode
Résultat int

Type public_oe property

The determined Type of the message
public HTTPMessageType Type
Résultat HTTPMessageType