Skip to content

HttpRequest

Summary

The class representing an HTTP request.

Signature

1
public sealed class HttpRequest

Namespace

cAlgo.API

Properties

Uri

Summary

Gets or sets the request URI.

Signature

1
public Uri Uri {get;}

Return Value

Uri

Body

Summary

Gets or sets the request body.If a GET, TRACE, HEAD, CONNECT, and OPTIONS request is performed, the value of this property is ignored.

Signature

1
public string Body {get; set;}

Return Value

string

Headers

Summary

Gets the request headers.

Signature

1
public HttpRequestHeaders Headers {get;}

Return Value

HttpRequestHeaders

Timeout

Summary

Gets or sets the request timeout.The default value is 100,000 milliseconds (100 seconds).

Signature

1
public TimeSpan Timeout {get; set;}

Return Value

TimeSpan

Version

Summary

Gets or sets the request version.The default value is 2.0.

Signature

1
public Version Version {get; set;}

Return Value

Version

VersionPolicy

Summary

Gets or sets the request version policy.The default value is RequestVersionOrLower.

Signature

1
public HttpVersionPolicy VersionPolicy {get; set;}

Return Value

HttpVersionPolicy

Method

Summary

Gets or sets the request method.The default value is Get.

Signature

1
public HttpMethod Method {get; set;}

Return Value

HttpMethod