C# Class XPHttp.XPRequestParam

Datei anzeigen Open project: brookshi/XPHttp

Public Methods

Method Description
AddHeader ( ) : XPRequestParam
AddHeader ( string key, string value ) : XPRequestParam
AddQueryString ( ) : XPRequestParam
AddQueryString ( string key, string value ) : XPRequestParam
AddUrlSegements ( ) : XPRequestParam
AddUrlSegements ( string key, string value ) : XPRequestParam
SetAuthorization ( string scheme, string authorization ) : XPRequestParam
SetBody ( IHttpContent body ) : XPRequestParam
SetContentEncoding ( UnicodeEncoding encoding ) : XPRequestParam
SetIfModifiedSince ( System.DateTime dt ) : XPRequestParam
SetJsonObjectBody ( IJsonValue jsonValue ) : XPRequestParam
SetJsonStringBody ( string jsonValue ) : XPRequestParam
SetMediaType ( string mediaType ) : XPRequestParam
SetNeedBaseUrl ( bool needBaseUrl ) : XPRequestParam
SetObjectBody ( object obj, HttpContentType contentType ) : XPRequestParam
SetStreamBody ( IInputStream body ) : XPRequestParam
SetStringBody ( string body ) : XPRequestParam

Private Methods

Method Description
ApplyToRequester ( HttpRequestMessage requester, XPHttpClientConfig config ) : void
HandleBody ( XPHttpClientConfig config ) : void

Method Details

AddHeader() public method

public AddHeader ( ) : XPRequestParam
return XPRequestParam

AddHeader() public method

public AddHeader ( string key, string value ) : XPRequestParam
key string
value string
return XPRequestParam

AddQueryString() public method

public AddQueryString ( ) : XPRequestParam
return XPRequestParam

AddQueryString() public method

public AddQueryString ( string key, string value ) : XPRequestParam
key string
value string
return XPRequestParam

AddUrlSegements() public method

public AddUrlSegements ( ) : XPRequestParam
return XPRequestParam

AddUrlSegements() public method

public AddUrlSegements ( string key, string value ) : XPRequestParam
key string
value string
return XPRequestParam

SetAuthorization() public method

public SetAuthorization ( string scheme, string authorization ) : XPRequestParam
scheme string
authorization string
return XPRequestParam

SetBody() public method

public SetBody ( IHttpContent body ) : XPRequestParam
body IHttpContent
return XPRequestParam

SetContentEncoding() public method

public SetContentEncoding ( UnicodeEncoding encoding ) : XPRequestParam
encoding UnicodeEncoding
return XPRequestParam

SetIfModifiedSince() public method

public SetIfModifiedSince ( System.DateTime dt ) : XPRequestParam
dt System.DateTime
return XPRequestParam

SetJsonObjectBody() public method

public SetJsonObjectBody ( IJsonValue jsonValue ) : XPRequestParam
jsonValue IJsonValue
return XPRequestParam

SetJsonStringBody() public method

public SetJsonStringBody ( string jsonValue ) : XPRequestParam
jsonValue string
return XPRequestParam

SetMediaType() public method

public SetMediaType ( string mediaType ) : XPRequestParam
mediaType string
return XPRequestParam

SetNeedBaseUrl() public method

public SetNeedBaseUrl ( bool needBaseUrl ) : XPRequestParam
needBaseUrl bool
return XPRequestParam

SetObjectBody() public method

public SetObjectBody ( object obj, HttpContentType contentType ) : XPRequestParam
obj object
contentType HttpContentType
return XPRequestParam

SetStreamBody() public method

public SetStreamBody ( IInputStream body ) : XPRequestParam
body IInputStream
return XPRequestParam

SetStringBody() public method

public SetStringBody ( string body ) : XPRequestParam
body string
return XPRequestParam