The HTTP boundary of the library. Providers depend on this interface and never on a concrete client library, which keeps them testable with an in-memory implementation and keeps the socket code in a single place.
Performs a blocking POST and reports the answer while it arrives. A non-2xx status is not a failure here: it is reported through the observer and returned, so the caller decides what it means.
- Parameters
-
| request | Fully built request. |
| observer | Where the status and the body go. |
- Returns
- The status the endpoint answered with, or 0 when it reported none.
- Exceptions
-
A class that implements this one keeps the buffered overload below reachable through its own type: the implementations here bring it in, and anything else can either do the same with using HttpTransport::post; or forward to it.
Implemented in OpenAnima::Http::CurlHttpTransport.
Referenced by OpenAnima::Http::CurlHttpTransport::post().