C# Class HttpServer.HttpHelper

Generic helper functions for Http
Afficher le fichier Open project: 3di/3di-viewer-rei-libs

Méthodes publiques

Свойство Type Description
EmptyUri System.Uri

Méthodes publiques

Méthode Description
ParseHeaderAttribute ( string header, string attribute ) : string

Parses an attribute from a header string. For example, the charset attribute can be parsed from the header Content-Type: text/html; charset=utf-8

ParseQueryString ( string queryString ) : HttpInput

Parses a querystring.

Private Methods

Méthode Description
Add ( IHttpInput input, string name, string value ) : void
IsAmp ( string queryStr, int &index, int &outIndex ) : bool
IsEqual ( string queryStr, int &index, int &outIndex ) : bool

Method Details

ParseHeaderAttribute() public static méthode

Parses an attribute from a header string. For example, the charset attribute can be parsed from the header Content-Type: text/html; charset=utf-8
public static ParseHeaderAttribute ( string header, string attribute ) : string
header string The raw header string containing the desired attribute
attribute string The name of the attribute to parse
Résultat string

ParseQueryString() public static méthode

Parses a querystring.
public static ParseQueryString ( string queryString ) : HttpInput
queryString string Querystring (url decoded)
Résultat HttpInput

Property Details

EmptyUri public_oe static_oe property

An empty url
public static Uri,System EmptyUri
Résultat System.Uri