Interface IHttpRequestor
A basic http client abstraction
Assembly: OSGeo.MapGuide.MaestroAPI.dll
Syntax
public interface IHttpRequestor
Methods
|
Improve this Doc
View Source
AttachCredentials(ICredentials)
Attaches the given credentials for authentication purposes
Declaration
void AttachCredentials(ICredentials cred)
Parameters
Type |
Name |
Description |
System.Net.ICredentials |
cred |
|
|
Improve this Doc
View Source
DownloadData(String, IHttpGetRequestOptions)
Performs a synchronous GET request with the expectation that the
response will be a byte array
Declaration
byte[] DownloadData(string uri, IHttpGetRequestOptions options)
Parameters
Returns
Type |
Description |
System.Byte[] |
|
|
Improve this Doc
View Source
Get(String, IHttpGetRequestOptions)
Performs a synchronous GET request
Declaration
Stream Get(string uri, IHttpGetRequestOptions options)
Parameters
Returns
Type |
Description |
System.IO.Stream |
|
|
Improve this Doc
View Source
GetAsync(String)
Performs an asynchronous GET request
Declaration
Task<HttpResponseMessage> GetAsync(string uri)
Parameters
Type |
Name |
Description |
System.String |
uri |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> |
|