![]() |
Qore HttpStreamClient Module Reference 1.0
|
The HttpStreamClient namespace contains all the public definitions in the HttpStreamClient module. More...
Classes | |
| class | HTTPResponseStream |
| HTTP response stream for incremental body reading. More... | |
| hashdecl | HTTPResponseStreamInfo |
| Response stream information hashdecl. More... | |
Functions | |
| HTTPResponseStream | sendAndStream (soft< reference< hash< auto > > > info, timeout default_timeout, soft< hash< auto > > headers, soft< data > body, soft< string > path, HTTPClient client, string method) |
| Sends an HTTP request and returns a stream for reading the response body. | |
The HttpStreamClient namespace contains all the public definitions in the HttpStreamClient module.
| HTTPResponseStream HttpStreamClient::sendAndStream | ( | soft< reference< hash< auto > > > | info, |
| timeout | default_timeout, | ||
| soft< hash< auto > > | headers, | ||
| soft< data > | body, | ||
| soft< string > | path, | ||
| HTTPClient | client, | ||
| string | method | ||
| ) |
Sends an HTTP request and returns a stream for reading the response body.
| client | the HTTPClient to use for the request |
| method | the HTTP method (GET, POST, etc.) |
| path | the request path |
| body | optional request body |
| headers | optional additional headers |
| info | reference to receive extended response information |
| default_timeout | optional default timeout for stream read operations |
This function sends an HTTP request with getbody=False so that only the headers are received. The body can then be read incrementally using the returned stream.