userver: clients::http::MiddlewareRequest Class Reference
Loading...
Searching...
No Matches
clients::http::MiddlewareRequest Class Referencefinal

#include <userver/clients/http/middlewares/base.hpp>

Detailed Description

Auxiliary entity that allows editing request to a client from middlewares.

Definition at line 30 of file base.hpp.

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.

The documentation for this class was generated from the following file:
  • userver/clients/http/middlewares/base.hpp