#include <userver/clients/http/middlewares/base.hpp>
Auxiliary entity that allows editing request to a client from middlewares.
Public Member Functions | |
| void | SetHeader (std::string_view name, std::string_view value) |
| void | AddQueryParams (std::string_view params) |
| void | SetTimeout (std::chrono::milliseconds ms) |
| void | SetProxy (utils::zstring_view value) |
| bool | IsProxySet () const |
| const std::string & | GetOriginalUrl () const |
| HttpMethod | GetMethod () const noexcept |
| Returns the HTTP method of the request. | |
| std::optional< std::string_view > | GetUrlTemplate () const noexcept |
| Returns the URL template set by the client, if any. The view is valid only during the middleware hook. | |