boost::burl::request_builder::as
Asynchronously send the request and convert the body.
Synopsis
Declared in <boost/burl/request_builder.hpp>
template<
class T,
class... Args>
capy::task<T>
as(Args&&... args) &&;
Description
Sends the request and converts the response body to T by calling tag_invoke with body_to_tag.
A status code of 400 or above throws without reading the body. Use try_as to inspect an error response.
Exceptions
Name |
Thrown on |
|
The request, status code, or conversion failed. |
See Also
Created with MrDocs