HttpStatement
Represents a prepared HTTP request statement for HttpClient.
The HttpStatement class encapsulates a request configuration without executing it immediately. This statement can be executed on-demand via various methods such as execute, allowing for deferred or multiple executions without creating a new request each time.
Deferred Execution
HttpStatement
does not initiate any network activity until an execution method is called. It is safe to execute multiple times, which can be useful in scenarios requiring reusability of the same request configuration.
Example: Streaming data
Functions
Executes the HTTP statement and processes the response through HttpClient.responsePipeline to retrieve an instance of the specified type T.
Executes the HTTP statement and returns the full HttpResponse.
Executes the HTTP statement and invokes the provided block with the streaming HttpResponse.