LUSID C# SDK
Properties | List of all members
Request Class Reference

A container for data used to make API requests More...

Properties

Dictionary< string, string > FormParameters = new() [get, set]
 Request form parameters More...
 
Multimap< string, string > QueryParameters = new() [get, set]
 Request query string parameters More...
 
Dictionary< string, string > PathParameters = new() [get, set]
 Parameters to be bound to segments of the request URL. Used in Resource More...
 
Multimap< string, Stream > FileParameters = new() [get, set]
 Files to be uploaded with the request More...
 
Multimap< string, string > Headers = new() [get, set]
 Request headers More...
 
HttpMethod Method = HttpMethod.Get [get, set]
 Determines what HTTP method to use for this request. See HttpMethod for valid values. Default is HttpMethod.Get More...
 
TimeSpan? Timeout [get, set]
 Client side timeout for the request More...
 
string Resource = "" [get, set]
 The resource URL to make the request against. Tokens should be substituted with PathParameters> parameters matched by name. Does not include a leading slash, or the schema or domain. Should be combined with a base URL to assemble final URL: {BaseUrl}/{Resource} (BaseUrl is scheme + domain, e.g. https://example.lusid.com) More...
 
DataFormat RequestFormat [get, set]
 Serializer to use when writing request bodies. More...
 
int Attempts [get]
 The number of attempts that were made to send this request More...
 
object? Body [get, set]
 The body of the request More...
 

Detailed Description

A container for data used to make API requests

Property Documentation

◆ Attempts

int Request.Attempts
get

The number of attempts that were made to send this request

This number is incremented each time the RestClient sends the request.

◆ Body

object? Request.Body
getset

The body of the request

◆ FileParameters

Multimap<string, Stream> Request.FileParameters = new()
getset

Files to be uploaded with the request

◆ FormParameters

Dictionary<string, string> Request.FormParameters = new()
getset

Request form parameters

◆ Headers

Multimap<string, string> Request.Headers = new()
getset

Request headers

◆ Method

HttpMethod Request.Method = HttpMethod.Get
getset

Determines what HTTP method to use for this request. See HttpMethod for valid values. Default is HttpMethod.Get

◆ PathParameters

Dictionary<string, string> Request.PathParameters = new()
getset

Parameters to be bound to segments of the request URL. Used in Resource

◆ QueryParameters

Multimap<string, string> Request.QueryParameters = new()
getset

Request query string parameters

◆ RequestFormat

DataFormat Request.RequestFormat
getset

Serializer to use when writing request bodies.

◆ Resource

string Request.Resource = ""
getset

The resource URL to make the request against. Tokens should be substituted with PathParameters> parameters matched by name. Does not include a leading slash, or the schema or domain. Should be combined with a base URL to assemble final URL: {BaseUrl}/{Resource} (BaseUrl is scheme + domain, e.g. https://example.lusid.com)

request.Resource = "Foo/{FooId}"; request.PathParameters.Add("FooId", "123");

◆ Timeout

TimeSpan? Request.Timeout
getset

Client side timeout for the request


The documentation for this class was generated from the following file: