blob: c104b15bd535f7d5d73500c06398f110996e1df1 (
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
25
26
27
28
29
30
|
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <vbench/http/server_spec.h>
#include <vbench/core/handler.h>
#include "request.h"
#include "tagger.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);
virtual void handle(Request::UP request);
};
} // namespace vbench
|