RESTCLIENT.NET / API REFERENCE
RestClient.Net.HttpRequestParts
All API types · RestClient.Net · View source
public readonly record struct HttpRequestParts(RelativeUrl RelativeUrl, HttpContent? Body, IReadOnlyDictionary<string, string>? Headers)
Represents the parts of an HTTP request including URL, body, and headers.
| Parameter | Type | Default | Description |
|---|---|---|---|
RelativeUrl |
RelativeUrl |
Required | The relative URL for the request. |
Body |
HttpContent? |
Required | The optional HTTP content for the request body. |
Headers |
IReadOnlyDictionary<string, string>? |
Required | The optional headers to include in the request. |
Members
.ctor
public HttpRequestParts(RelativeUrl RelativeUrl, HttpContent? Body, IReadOnlyDictionary<string, string>? Headers);
Represents the parts of an HTTP request including URL, body, and headers.
| Parameter | Type | Default | Description |
|---|---|---|---|
RelativeUrl |
RelativeUrl |
Required | The relative URL for the request. |
Body |
HttpContent? |
Required | The optional HTTP content for the request body. |
Headers |
IReadOnlyDictionary<string, string>? |
Required | The optional headers to include in the request. |
View source: RestClient.Net/Delegates.cs:12
Body
public HttpContent? Body { get; init; }
View source: RestClient.Net/Delegates.cs:14
Headers
public IReadOnlyDictionary<string, string>? Headers { get; init; }
View source: RestClient.Net/Delegates.cs:15
RelativeUrl
public RelativeUrl RelativeUrl { get; init; }