Table of Contents

Class RESTRequest<T>

This class is used to create a http request. It holds the endpoint, headers, form data and the request options.

public class RESTRequest<T> : RESTRequest

Type Parameters

T

The type of the body of the request. This is used to send a request to the server and receive a response. The type of the body can be any class that inherits from RequestBody.

Inheritance
RESTRequest<T>
Inherited Members
Extension Methods

Constructors

RESTRequest(string, T, RequestOptions)

public RESTRequest(string url, T body, RequestOptions options)

Parameters

url string
body T
options RequestOptions

Properties

Body

public T Body { get; set; }

Property Value

T

HasBody

Indicates if the request has a body or not. This is used to determine if the request should be sent with a body or not.

public override bool HasBody { get; }

Property Value

bool