C# Class HTTP.Request

Mostra file Open project: wids-eria/tf_client Class Usage Examples

Public Properties

Property Type Description
EOL byte[]
acceptGzip bool
bytes byte[]
exception System.Exception
isDone bool
maximumRetryCount int
method string
protocol string
response Response
state RequestState
uri System.Uri
useCache bool

Protected Properties

Property Type Description
pathAndQuery string

Public Methods

Method Description
AddHeader ( string name, string value ) : void
AddParameter ( string name, string value ) : void
AddParameters ( string>.Dictionary parms ) : void
GetHeader ( string name ) : string
GetHeaders ( string name ) : List
Request ( string method, string uri ) : UnityEngine
Request ( string method, string uri, bool useCache ) : UnityEngine
Request ( string method, string uri, byte bytes ) : UnityEngine
Send ( ) : void
SetHeader ( string name, string value ) : void
SetParameter ( string name, string value ) : void
SetParameters ( string>.Dictionary parms ) : void
SetText ( JSON json ) : void
SetText ( string value ) : void
ValidateServerCertificate ( object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors ) : bool
WriteToStream ( Stream outputStream ) : void

Protected Methods

Method Description
BuildQuery ( ) : string

Method Details

AddHeader() public method

public AddHeader ( string name, string value ) : void
name string
value string
return void

AddParameter() public method

public AddParameter ( string name, string value ) : void
name string
value string
return void

AddParameters() public method

public AddParameters ( string>.Dictionary parms ) : void
parms string>.Dictionary
return void

BuildQuery() protected method

protected BuildQuery ( ) : string
return string

GetHeader() public method

public GetHeader ( string name ) : string
name string
return string

GetHeaders() public method

public GetHeaders ( string name ) : List
name string
return List

Request() public method

public Request ( string method, string uri ) : UnityEngine
method string
uri string
return UnityEngine

Request() public method

public Request ( string method, string uri, bool useCache ) : UnityEngine
method string
uri string
useCache bool
return UnityEngine

Request() public method

public Request ( string method, string uri, byte bytes ) : UnityEngine
method string
uri string
bytes byte
return UnityEngine

Send() public method

public Send ( ) : void
return void

SetHeader() public method

public SetHeader ( string name, string value ) : void
name string
value string
return void

SetParameter() public method

public SetParameter ( string name, string value ) : void
name string
value string
return void

SetParameters() public method

public SetParameters ( string>.Dictionary parms ) : void
parms string>.Dictionary
return void

SetText() public method

public SetText ( JSON json ) : void
json JSON
return void

SetText() public method

public SetText ( string value ) : void
value string
return void

ValidateServerCertificate() public static method

public static ValidateServerCertificate ( object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors ) : bool
sender object
certificate System.Security.Cryptography.X509Certificates.X509Certificate
chain System.Security.Cryptography.X509Certificates.X509Chain
sslPolicyErrors SslPolicyErrors
return bool

WriteToStream() public method

public WriteToStream ( Stream outputStream ) : void
outputStream Stream
return void

Property Details

EOL public_oe static_oe property

public static byte[] EOL
return byte[]

acceptGzip public_oe property

public bool acceptGzip
return bool

bytes public_oe property

public byte[] bytes
return byte[]

exception public_oe property

public Exception,System exception
return System.Exception

isDone public_oe property

public bool isDone
return bool

maximumRetryCount public_oe property

public int maximumRetryCount
return int

method public_oe property

public string method
return string

pathAndQuery protected_oe property

protected string pathAndQuery
return string

protocol public_oe property

public string protocol
return string

response public_oe property

public Response,HTTP response
return Response

state public_oe property

public RequestState state
return RequestState

uri public_oe property

public Uri,System uri
return System.Uri

useCache public_oe property

public bool useCache
return bool