Lolly 1.4.27
Loading...
Searching...
No Matches
http.hpp
Go to the documentation of this file.
1
2/******************************************************************************
3 * MODULE : http.hpp
4 * DESCRIPTION: HTTP related routines
5 * COPYRIGHT : (C) 2023 Darcy Shen
6 *******************************************************************************
7 * This software falls under the GNU general public license version 3 or later.
8 * It comes WITHOUT ANY WARRANTY WHATSOEVER. For details, see the file LICENSE
9 * in the root directory or <http://www.gnu.org/licenses/gpl-3.0.html>.
10 ******************************************************************************/
11
12#pragma once
13
14#include "blackbox.hpp"
15#include "hashmap.hpp"
17#include "url.hpp"
18
19namespace lolly {
20namespace io {
21
23
36
38
39template <typename T> inline http_tree blackbox_tree (int label, T data);
40
41inline http_tree
53
54inline http_tree
56 return r[op - 1];
57}
58
59inline void
63
67
68} // namespace io
69} // namespace lolly
blackbox t[13]
A simple hashmap class implementation.
Definition hashmap.hpp:176
The list class represents a linked list.
Definition list.hpp:48
Definition url.hpp:37
http_tree download(url from, url to, http_headers headers)
Definition http.cpp:118
http_tree http_response_ref(http_tree r, http_label op)
Definition http.hpp:55
lolly_tree< blackbox > http_tree
Definition http.hpp:22
void http_response_set(http_tree r, http_label op, http_tree t)
Definition http.hpp:60
@ PAYLOAD
Definition http.hpp:31
@ MULTIPART
Definition http.hpp:32
@ HEADER
Definition http.hpp:29
@ ELAPSED
Definition http.hpp:28
@ PARAMETERS
Definition http.hpp:30
@ STATUS_CODE
Definition http.hpp:25
@ TUPLE
Definition http.hpp:33
hashmap< string, string > http_headers
Definition http.hpp:37
http_tree blackbox_tree(int label, T data)
Definition http.cpp:29
http_tree http_response_init()
Definition http.hpp:42
http_tree http_head(url u, http_headers headers)
Definition http.cpp:105
http_tree http_get(url u, http_headers headers)
Definition http.cpp:92