C# Class FluentTc.Engine.HttpClientWrapper

Inheritance: IHttpClientWrapper
Exibir arquivo Open project: QualiSystems/FluentTc

Public Methods

Method Description
Delete ( string createUrl ) : void
Get ( string url ) : HttpResponse
GetAsFile ( string url, string tempFileName ) : HttpResponse
HttpClientWrapper ( ) : EasyHttp.Http
Post ( string url, object data, string textPlain, object query ) : HttpResponse
Put ( string createUrl, object data, string contenttype, object query = null ) : void
SetRequestAccept ( string accept ) : void
SetRequestBasicAuthentication ( string userName, string password, bool forceBasicAuth ) : void

Method Details

Delete() public method

public Delete ( string createUrl ) : void
createUrl string
return void

Get() public method

public Get ( string url ) : HttpResponse
url string
return HttpResponse

GetAsFile() public method

public GetAsFile ( string url, string tempFileName ) : HttpResponse
url string
tempFileName string
return HttpResponse

HttpClientWrapper() public method

public HttpClientWrapper ( ) : EasyHttp.Http
return EasyHttp.Http

Post() public method

public Post ( string url, object data, string textPlain, object query ) : HttpResponse
url string
data object
textPlain string
query object
return HttpResponse

Put() public method

public Put ( string createUrl, object data, string contenttype, object query = null ) : void
createUrl string
data object
contenttype string
query object
return void

SetRequestAccept() public method

public SetRequestAccept ( string accept ) : void
accept string
return void

SetRequestBasicAuthentication() public method

public SetRequestBasicAuthentication ( string userName, string password, bool forceBasicAuth ) : void
userName string
password string
forceBasicAuth bool
return void