blob: b356de7281b3e494aaf78803911613b5948668db (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "tagger.h"
#include <vbench/http/server_spec.h>
namespace vbench {
/**
* Sets the target server for requests.
**/
class ServerTagger : public Tagger
{
private:
ServerSpec _server;
Handler<Request> &_next;
public:
ServerTagger(const ServerSpec &server, Handler<Request> &next);
void handle(Request::UP request) override;
};
} // namespace vbench
|