C# Class PeerCastStation.HTTP.HTTPUtils

Afficher le fichier Open project: kumaryu/peercaststation Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
GetAuthorizationToken ( PeerCastStation request ) : string

Method Details

CheckAuthorization() public static méthode

public static CheckAuthorization ( PeerCastStation request, PeerCastStation acinfo ) : bool
request PeerCastStation
acinfo PeerCastStation
Résultat bool

CheckAuthorization() public static méthode

public static CheckAuthorization ( string authorization_token, PeerCastStation acinfo ) : bool
authorization_token string
acinfo PeerCastStation
Résultat bool

CreateAuthorizationToken() public static méthode

public static CreateAuthorizationToken ( PeerCastStation key ) : string
key PeerCastStation
Résultat string

CreateResponse() public static méthode

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

CreateResponseHeader() public static méthode

public static CreateResponseHeader ( HttpStatusCode code ) : string
code HttpStatusCode
Résultat string

CreateResponseHeader() public static méthode

public static CreateResponseHeader ( HttpStatusCode code, string>.Dictionary parameters ) : string
code HttpStatusCode
parameters string>.Dictionary
Résultat string

GetReasonPhrase() public static méthode

public static GetReasonPhrase ( int status_code ) : string
status_code int
Résultat string

ParseQuery() public static méthode

public static ParseQuery ( string query ) : string>.Dictionary
query string
Résultat string>.Dictionary