blob: 774bc3bcd86640fdc3779c5f92cbffd2d12684e2 (
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
|
#pragma once
#include <vector>
#include <util/string/builder.h>
namespace NYql {
class TUrlBuilder {
struct TParam {
TString Name;
TString Value;
};
public:
explicit TUrlBuilder(const TString& uri);
// Assuming name is already escaped, do not use strings from user input
TUrlBuilder& AddUrlParam(const TString& name, const TString& value = "");
TUrlBuilder& AddPathComponent(const TString& value);
TString Build() const;
private:
std::vector<TParam> Params;
TString MainUri;
};
} // NYql
|