aboutsummaryrefslogtreecommitdiffstats
path: root/vbench/src/vbench/vbench/server_tagger.h
blob: 9546fc1f0102776e523bceb24d16ab02c6f036ab (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 Vespa.ai. 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