C# Class DynamicRest.TemplatedUriRequestBuilder

Inheritance: IBuildRequests
Show file Open project: Huddle/dynamicrest Class Usage Examples

Public Methods

Method Description
AddCustomHeader ( string headerKey, string value ) : void
AddHeader ( HttpRequestHeader headerType, string value ) : void
CreateRequest ( string operationName, JsonObject parameters ) : IHttpRequest
IfModifiedSince ( System.DateTime ifModifiedSince ) : void
SetOAuth2AuthorizationHeader ( string oAuth2Token ) : void
SetUriTransformer ( IRestUriTransformer uriTransformer ) : void
TemplatedUriRequestBuilder ( IHttpRequestFactory requestFactory ) : System

Private Methods

Method Description
BuildUri ( string operationName, JsonObject parameters ) : Uri

Method Details

AddCustomHeader() public method

public AddCustomHeader ( string headerKey, string value ) : void
headerKey string
value string
return void

AddHeader() public method

public AddHeader ( HttpRequestHeader headerType, string value ) : void
headerType HttpRequestHeader
value string
return void

CreateRequest() public method

public CreateRequest ( string operationName, JsonObject parameters ) : IHttpRequest
operationName string
parameters JsonObject
return IHttpRequest

IfModifiedSince() public method

public IfModifiedSince ( System.DateTime ifModifiedSince ) : void
ifModifiedSince System.DateTime
return void

SetOAuth2AuthorizationHeader() public method

public SetOAuth2AuthorizationHeader ( string oAuth2Token ) : void
oAuth2Token string
return void

SetUriTransformer() public method

public SetUriTransformer ( IRestUriTransformer uriTransformer ) : void
uriTransformer IRestUriTransformer
return void

TemplatedUriRequestBuilder() public method

public TemplatedUriRequestBuilder ( IHttpRequestFactory requestFactory ) : System
requestFactory IHttpRequestFactory
return System