aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/http/misc/parsed_request.h
blob: 00ba7767e702c0b87393f1ff44665bd78f8f9072 (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 <util/generic/strbuf.h> 
 
struct TParsedHttpRequest { 
    TParsedHttpRequest(const TStringBuf& str); 
 
    TStringBuf Method; 
    TStringBuf Request; 
    TStringBuf Proto; 
}; 
 
struct TParsedHttpLocation { 
    TParsedHttpLocation(const TStringBuf& req); 
 
    TStringBuf Path; 
    TStringBuf Cgi; 
}; 
 
struct TParsedHttpFull: public TParsedHttpRequest, public TParsedHttpLocation { 
    inline TParsedHttpFull(const TStringBuf& line) 
        : TParsedHttpRequest(line) 
        , TParsedHttpLocation(Request) 
    { 
    } 
};