C# 클래스 org.GraphDefined.Vanaheimr.Hermod.HTTP.HTTPExtentions

파일 보기 프로젝트 열기: Vanaheimr/Hermod 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

CreateBadRequest() 공개 정적인 메소드

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

CreateBadRequest() 공개 정적인 메소드

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

CreateError() 공개 정적인 메소드

public static CreateError ( String Text ) : Byte[]
Text String
리턴 Byte[]

CreateNotFound() 공개 정적인 메소드

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

GetRequestBodyAsUTF8String() 공개 정적인 메소드

public static GetRequestBodyAsUTF8String ( this Request, HTTPContentType HTTPContentType ) : HTTPResult
Request this
HTTPContentType HTTPContentType
리턴 HTTPResult

ParseXMLRequestBody() 공개 정적인 메소드

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

TryParseI18NString() 공개 정적인 메소드

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
리턴 System.Boolean

TryParseJArrayRequestBody() 공개 정적인 메소드

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
리턴 System.Boolean

TryParseJObjectRequestBody() 공개 정적인 메소드

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
리턴 System.Boolean