C# Class HttpServer.HttpHelper

Generic helper functions for Http
Show file Open project: 3di/3di-viewer-rei-libs

Public Properties

Property Type Description
EmptyUri System.Uri

Public Methods

Method 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

Method 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 method

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
return string

ParseQueryString() public static method

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

Property Details

EmptyUri public static property

An empty url
public static Uri,System EmptyUri
return System.Uri