aboutsummaryrefslogtreecommitdiffhomepage
path: root/tdnet/td/net/HttpHeaderCreator.h
diff options
context:
space:
mode:
Diffstat (limited to 'tdnet/td/net/HttpHeaderCreator.h')
-rw-r--r--tdnet/td/net/HttpHeaderCreator.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tdnet/td/net/HttpHeaderCreator.h b/tdnet/td/net/HttpHeaderCreator.h
index 021f72c17..ede1f9fe7 100644
--- a/tdnet/td/net/HttpHeaderCreator.h
+++ b/tdnet/td/net/HttpHeaderCreator.h
@@ -65,6 +65,8 @@ class HttpHeaderCreator {
add_header("Connection", "keep-alive");
}
+ void add_host_header(HttpUrl::Protocol protocol, Slice host, int32 port);
+
static string get_host_header(HttpUrl::Protocol protocol, Slice host, int32 port);
Result<Slice> finish(Slice content = {}) TD_WARN_UNUSED_RESULT;