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

Exibir arquivo Open project: Vanaheimr/Hermod Class Usage Examples

Public Methods

Method 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 method

public static CreateBadRequest ( HTTPRequest HTTPRequest, String Context, String ParameterName ) : HTTPResponse
HTTPRequest HTTPRequest
Context String
ParameterName String
return HTTPResponse

CreateBadRequest() public static method

public static CreateBadRequest ( HTTPRequest HTTPRequest, String Context, String ParameterName, String Value ) : HTTPResponse
HTTPRequest HTTPRequest
Context String
ParameterName String
Value String
return HTTPResponse

CreateError() public static method

public static CreateError ( String Text ) : Byte[]
Text String
return Byte[]

CreateNotFound() public static method

public static CreateNotFound ( HTTPRequest HTTPRequest, String Context, String ParameterName, String Value ) : HTTPResponse
HTTPRequest HTTPRequest
Context String
ParameterName String
Value String
return HTTPResponse

GetRequestBodyAsUTF8String() public static method

public static GetRequestBodyAsUTF8String ( this Request, HTTPContentType HTTPContentType ) : HTTPResult
Request this
HTTPContentType HTTPContentType
return HTTPResult

ParseXMLRequestBody() public static method

public static ParseXMLRequestBody ( this Request, HTTPContentType ContentType = null ) : HTTPResult
Request this
ContentType HTTPContentType
return HTTPResult

TryParseI18NString() public static method

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
return System.Boolean

TryParseJArrayRequestBody() public static method

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
return System.Boolean

TryParseJObjectRequestBody() public static method

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
return System.Boolean