C# Класс HttpServer.HttpHelper

Generic helper functions for Http
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
EmptyUri System.Uri

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
Add ( IHttpInput input, string name, string value ) : void
IsAmp ( string queryStr, int &index, int &outIndex ) : bool
IsEqual ( string queryStr, int &index, int &outIndex ) : bool

Описание методов

ParseHeaderAttribute() публичный статический Метод

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
Результат string

ParseQueryString() публичный статический Метод

Parses a querystring.
public static ParseQueryString ( string queryString ) : HttpInput
queryString string Querystring (url decoded)
Результат HttpInput

Описание свойств

EmptyUri публичное статическое свойство

An empty url
public static Uri,System EmptyUri
Результат System.Uri