Class RESTRequest<T>
- Namespace
- Glitch9.IO.Networking.RESTApi
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
TThe 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
urlstringbodyToptionsRequestOptions
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; }