Skip to content

Http

Summary

The Https interface contains the methods necessary for sending HTTP requests.

Signature

1
public abstract interface Http

Namespace

cAlgo.API

Methods

Get (2)

Get (1 of 2)

Summary

Performs a GET request to the specified URI.

Signature

1
public abstract HttpResponse Get(Uri uri)

Parameters

Name Type Description
uri Uri The URI that the GET request should be made to.

Return Value

HttpResponse

Get (2 of 2)

Summary

Performs a GET request to the specified URI.

Signature

1
public abstract HttpResponse Get(string uri)

Parameters

Name Type Description
uri string The string containing the URI that the GET request should be made to.

Return Value

HttpResponse

GetAsync (2)

GetAsync (1 of 2)

Summary

Performs a GET request to the specified URI asynchronously.

Signature

1
public abstract void GetAsync(Uri uri, Action<HttpResponse> callback)

Parameters

Name Type Description
uri Uri The URI that the GET request should be made to.
callback Action The method to be invoked when the request is being sent.

Return Value

void

GetAsync (2 of 2)

Summary

Performs a GET request to the specified URI asynchronously.

Signature

1
public abstract void GetAsync(string uri, Action<HttpResponse> callback)

Parameters

Name Type Description
uri string The string containing the URI that the GET request should be made to.
callback Action The method to be invoked when the request is being sent.

Return Value

void

Send

Summary

Performs a request to the specified URI. The request method depends on the value of the request.Method property.

Signature

1
public abstract HttpResponse Send(HttpRequest request)

Parameters

Name Type Description
request HttpRequest The HttpRequest object representing the request contents.

Return Value

HttpResponse

See Also

SendAsync

Summary

Performs a request to the specified URI. The request method depends on the value of the request.Method property.

Signature

1
public abstract void SendAsync(HttpRequest request, Action<HttpResponse> callback)

Parameters

Name Type Description
request HttpRequest The HttpRequest object representing the request contents.
callback Action The method to be invoked when the request is being sent.

Return Value

void

See Also