C# Class org.GraphDefined.Vanaheimr.Hermod.HTTP.HTTPExtentions

Afficher le fichier Open project: Vanaheimr/Hermod Class Usage Examples

Méthodes publiques

Méthode Description
CreateBadRequest ( HTTPRequest HTTPRequest, String Context, String ParameterName ) : HTTPResponse
CreateBadRequest ( HTTPRequest HTTPRequest, String Context, String ParameterName, String Value ) : HTTPResponse
CreateError ( String Text ) : Byte[]
CreateNotFound ( HTTPRequest HTTPRequest, String Context, String ParameterName, String Value ) : HTTPResponse
GetRequestBodyAsUTF8String ( this Request, HTTPContentType HTTPContentType ) : HTTPResult
ParseXMLRequestBody ( this Request, HTTPContentType ContentType = null ) : HTTPResult
TryParseI18NString ( HTTPRequest HTTPRequest, Newtonsoft.Json.Linq.JObject DescriptionJSON, I18NString &I18N, HTTPResponse &Response ) : System.Boolean
TryParseJArrayRequestBody ( this HTTPRequest, Newtonsoft.Json.Linq.JArray &JSON, HTTPResponse &HTTPResponse, System.Boolean AllowEmptyHTTPBody = false, String JSONLDContext = null ) : System.Boolean
TryParseJObjectRequestBody ( this HTTPRequest, JSONWrapper &JSON, HTTPResponse &HTTPResponse, System.Boolean AllowEmptyHTTPBody = false, String JSONLDContext = null ) : System.Boolean

Method Details

CreateBadRequest() public static méthode

public static CreateBadRequest ( HTTPRequest HTTPRequest, String Context, String ParameterName ) : HTTPResponse
HTTPRequest HTTPRequest
Context String
ParameterName String
Résultat HTTPResponse

CreateBadRequest() public static méthode

public static CreateBadRequest ( HTTPRequest HTTPRequest, String Context, String ParameterName, String Value ) : HTTPResponse
HTTPRequest HTTPRequest
Context String
ParameterName String
Value String
Résultat HTTPResponse

CreateError() public static méthode

public static CreateError ( String Text ) : Byte[]
Text String
Résultat Byte[]

CreateNotFound() public static méthode

public static CreateNotFound ( HTTPRequest HTTPRequest, String Context, String ParameterName, String Value ) : HTTPResponse
HTTPRequest HTTPRequest
Context String
ParameterName String
Value String
Résultat HTTPResponse

GetRequestBodyAsUTF8String() public static méthode

public static GetRequestBodyAsUTF8String ( this Request, HTTPContentType HTTPContentType ) : HTTPResult
Request this
HTTPContentType HTTPContentType
Résultat HTTPResult

ParseXMLRequestBody() public static méthode

public static ParseXMLRequestBody ( this Request, HTTPContentType ContentType = null ) : HTTPResult
Request this
ContentType HTTPContentType
Résultat HTTPResult

TryParseI18NString() public static méthode

public static TryParseI18NString ( HTTPRequest HTTPRequest, Newtonsoft.Json.Linq.JObject DescriptionJSON, I18NString &I18N, HTTPResponse &Response ) : System.Boolean
HTTPRequest HTTPRequest
DescriptionJSON Newtonsoft.Json.Linq.JObject
I18N I18NString
Response HTTPResponse
Résultat System.Boolean

TryParseJArrayRequestBody() public static méthode

public static TryParseJArrayRequestBody ( this HTTPRequest, Newtonsoft.Json.Linq.JArray &JSON, HTTPResponse &HTTPResponse, System.Boolean AllowEmptyHTTPBody = false, String JSONLDContext = null ) : System.Boolean
HTTPRequest this
JSON Newtonsoft.Json.Linq.JArray
HTTPResponse HTTPResponse
AllowEmptyHTTPBody System.Boolean
JSONLDContext String
Résultat System.Boolean

TryParseJObjectRequestBody() public static méthode

public static TryParseJObjectRequestBody ( this HTTPRequest, JSONWrapper &JSON, HTTPResponse &HTTPResponse, System.Boolean AllowEmptyHTTPBody = false, String JSONLDContext = null ) : System.Boolean
HTTPRequest this
JSON JSONWrapper
HTTPResponse HTTPResponse
AllowEmptyHTTPBody System.Boolean
JSONLDContext String
Résultat System.Boolean