Method CreateRequest
CreateRequest(HttpMethod, string, params ReadOnlySpan<(string Name, object? Value)>)
Creates an API request with the specified HTTP method, path, and optional query string parameters.
Declaration
protected virtual HttpRequestMessage CreateRequest(HttpMethod method, string path, params ReadOnlySpan<(string Name, object? Value)> queryStringParams)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpMethod | method | The HTTP method for the request (e.g., GET, POST). |
| string | path | The API path to which the request will be sent. |
| ReadOnlySpan<(string Name, object Value)> | queryStringParams | Optional query string parameters to include in the request. |
Returns
| Type | Description |
|---|---|
| HttpRequestMessage |