aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/http/client/fetch/parse.h
blob: dacfa9bf845158449baeaf96953f0e5ebb6b64a7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#pragma once

#include "fetch_result.h"
#include <library/cpp/uri/http_url.h>

namespace NHttpFetcher {
    void ParseUrl(const TStringBuf url, THttpURL::EKind& kind, TString& host, ui16& port);

    void ParseHttpResponse(TResult& result, IInputStream& stream, THttpURL::EKind kind,
                           TStringBuf host, ui16 port);

    void ParseHttpResponse(TResult& result, IInputStream& stream, const TString& url);

}