C# Class NG.HttpClient.HttpExtension

ファイルを表示 Open project: Naphier/NGTools

Public Methods

Method Description
EscapeHttpUrl ( string host, string path, bool https ) : string
EscapeHttpUrl ( string host, string path, bool https, string user, string password ) : string
GetRequestHeader ( WWWForm wwwForm ) : string
SetAuthHeader ( string>.Dictionary &headers, string user, string password ) : void

Private Methods

Method Description
GetHttpProtocol ( bool https ) : string
GetPath ( string path ) : string

Method Details

EscapeHttpUrl() public static method

public static EscapeHttpUrl ( string host, string path, bool https ) : string
host string
path string
https bool
return string

EscapeHttpUrl() public static method

public static EscapeHttpUrl ( string host, string path, bool https, string user, string password ) : string
host string
path string
https bool
user string
password string
return string

GetRequestHeader() public static method

public static GetRequestHeader ( WWWForm wwwForm ) : string
wwwForm UnityEngine.WWWForm
return string

SetAuthHeader() public static method

public static SetAuthHeader ( string>.Dictionary &headers, string user, string password ) : void
headers string>.Dictionary
user string
password string
return void