> All members, including inherited
◆ runAsync() [1/2]
◆ runAsync() [2/2]
◆ runBlocking()
Response ACurl::Builder::runBlocking |
( |
| ) |
|
◆ toInputStream()
- Note
- creates async task where curl's loop lives in.
- Exceptions
-
- Returns
- input stream
◆ withBody()
- Parameters
-
callback | callback to call. |
- Returns
- this
◆ withErrorCallback()
Builder & ACurl::Builder::withErrorCallback |
( |
ErrorCallback | callback | ) |
|
|
inline |
- Note
- Also disables throwing exception on error
◆ withHeaderCallback()
Builder & ACurl::Builder::withHeaderCallback |
( |
HeaderCallback | headerCallback | ) |
|
|
inline |
- Parameters
-
headerCallback | callback to call. |
- Returns
- this
◆ withInputStream()
- Parameters
-
inputStream | input stream to get data to upload from. |
- Returns
- this
◆ withLowSpeedLimit()
Builder & ACurl::Builder::withLowSpeedLimit |
( |
size_t | speed | ) |
|
- Parameters
-
speed | threshold speed (bytes per second). |
◆ withLowSpeedTime()
Builder & ACurl::Builder::withLowSpeedTime |
( |
std::chrono::seconds | duration | ) |
|
◆ withMethod()
Builder & ACurl::Builder::withMethod |
( |
Method | method | ) |
|
|
inlinenoexcept |
◆ withMultipart()
This function implies adding Content-Type: multipart and it's boundaries, setting withBody with multipart data.
◆ withParams() [1/2]
In GET, the params are encoded and appended to the url.
In POST, this value is used instead of readCallback (withBody).
◆ withParams() [2/2]
- Parameters
-
params | params map in key,value pairs. |
In GET, the params are encoded and appended to the url.
In POST, this value is used instead of readCallback (withBody).
◆ withRanges() [1/2]
Builder & ACurl::Builder::withRanges |
( |
size_t | begin | ) |
|
|
inline |
- Parameters
-
begin | start index of the part |
- Returns
- this
◆ withRanges() [2/2]
Builder & ACurl::Builder::withRanges |
( |
size_t | begin, |
|
|
size_t | end ) |
- Parameters
-
begin | start index of the part |
end | end index of the part. |
- Returns
- this
◆ withTimeout()
Builder & ACurl::Builder::withTimeout |
( |
std::chrono::seconds | timeout | ) |
|
◆ withWriteCallback() [1/2]
- Parameters
-
callback | callback to call. |
- Returns
- this
- See also
- withDestinationBuffer
◆ withWriteCallback() [2/2]
- Parameters
-
callback | callback to call. |
- Returns
- this
- See also
- withDestinationBuffer