userver: utest::HttpServerMock Class Reference
Loading...
Searching...
No Matches
utest::HttpServerMock Class Reference

Detailed Description

Definition at line 15 of file http_server_mock.hpp.

Classes

struct  HttpRequest
 
struct  HttpResponse
 

Public Types

using HttpHandler = std::function<HttpResponse(const HttpRequest&)>
 

Public Member Functions

 HttpServerMock (HttpHandler http_handler, SimpleServer::Protocol protocol=SimpleServer::kTcpIpV4)
 
std::string GetBaseUrl () const
 
std::uint64_t GetConnectionsOpenedCount () const
 

Member Typedef Documentation

◆ HttpHandler

using utest::HttpServerMock::HttpHandler = std::function<HttpResponse(const HttpRequest&)>

Definition at line 32 of file http_server_mock.hpp.

Friends And Related Symbol Documentation

◆ HttpConnection

friend class HttpConnection
friend

Definition at line 42 of file http_server_mock.hpp.


The documentation for this class was generated from the following file: