userver: userver/utest/http_server_mock.hpp File Reference
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
http_server_mock.hpp File Reference

Your opinion will help to improve our service

Leave a feedback >

Detailed Description

Toy HTTP server for testing; for raw TCP or TLS testing use utest::SimpleServer.

Definition in file http_server_mock.hpp.

Go to the source code of this file.

#include <cstdint>
#include <map>
#include <userver/utest/simple_server.hpp>
#include <userver/clients/http/request.hpp>
#include <userver/clients/http/response.hpp>

Classes

class  utest::HttpServerMock
 Toy HTTP server for testing; for raw TCP or TLS testing use utest::SimpleServer. More...
 
struct  utest::HttpServerMock::HttpRequest
 Structure with HTTP request that is passed to the HttpHandler callback. More...
 
struct  utest::HttpServerMock::HttpResponse
 Structure with HTTP response to return from the HttpHandler callback. More...
 

Namespaces

namespace  utest
 Mocks and test helpers.