C# Class PeerCastStation.HTTP.HTTPUtils

Exibir arquivo Open project: kumaryu/peercaststation Class Usage Examples

Public Methods

Method Description
CheckAuthorization ( PeerCastStation request, PeerCastStation acinfo ) : bool
CheckAuthorization ( string authorization_token, PeerCastStation acinfo ) : bool
CreateAuthorizationToken ( PeerCastStation key ) : string
CreateResponse ( HttpStatusCode code, string>.Dictionary parameters, string data ) : byte[]
CreateResponseHeader ( HttpStatusCode code ) : string
CreateResponseHeader ( HttpStatusCode code, string>.Dictionary parameters ) : string
GetReasonPhrase ( int status_code ) : string
ParseQuery ( string query ) : string>.Dictionary

Private Methods

Method Description
GetAuthorizationToken ( PeerCastStation request ) : string

Method Details

CheckAuthorization() public static method

public static CheckAuthorization ( PeerCastStation request, PeerCastStation acinfo ) : bool
request PeerCastStation
acinfo PeerCastStation
return bool

CheckAuthorization() public static method

public static CheckAuthorization ( string authorization_token, PeerCastStation acinfo ) : bool
authorization_token string
acinfo PeerCastStation
return bool

CreateAuthorizationToken() public static method

public static CreateAuthorizationToken ( PeerCastStation key ) : string
key PeerCastStation
return string

CreateResponse() public static method

public static CreateResponse ( HttpStatusCode code, string>.Dictionary parameters, string data ) : byte[]
code HttpStatusCode
parameters string>.Dictionary
data string
return byte[]

CreateResponseHeader() public static method

public static CreateResponseHeader ( HttpStatusCode code ) : string
code HttpStatusCode
return string

CreateResponseHeader() public static method

public static CreateResponseHeader ( HttpStatusCode code, string>.Dictionary parameters ) : string
code HttpStatusCode
parameters string>.Dictionary
return string

GetReasonPhrase() public static method

public static GetReasonPhrase ( int status_code ) : string
status_code int
return string

ParseQuery() public static method

public static ParseQuery ( string query ) : string>.Dictionary
query string
return string>.Dictionary