Skip to main content

rl_lang/docs/entries/stdlib/http/
mod.rs

1use crate::docs::entry::{FnEntry, StdEntry};
2
3mod http_get;
4mod http_post;
5mod http_request;
6mod http_request_body;
7mod http_request_header;
8mod http_request_method;
9mod http_request_url;
10mod http_respond;
11mod http_server_recv;
12mod http_server_start;
13mod http_server_stop;
14mod http_server_try_recv;
15
16pub static HTTP: StdEntry = StdEntry {
17    name: "http",
18    description: "a minimal HTTP server (tiny_http) and blocking HTTP client (ureq)",
19    functions: FUNCTIONS,
20    since: None,
21    unstable: false,
22};
23
24static FUNCTIONS: &[&FnEntry] = &[
25    &http_server_start::HTTP_SERVER_START,
26    &http_server_recv::HTTP_SERVER_RECV,
27    &http_server_try_recv::HTTP_SERVER_TRY_RECV,
28    &http_request_method::HTTP_REQUEST_METHOD,
29    &http_request_url::HTTP_REQUEST_URL,
30    &http_request_header::HTTP_REQUEST_HEADER,
31    &http_request_body::HTTP_REQUEST_BODY,
32    &http_respond::HTTP_RESPOND,
33    &http_server_stop::HTTP_SERVER_STOP,
34    &http_get::HTTP_GET,
35    &http_post::HTTP_POST,
36    &http_request::HTTP_REQUEST,
37];