1
Fork 0
Commit graph

23 commits

Author SHA1 Message Date
Drew DeVault c63af5d3ec Improve documentation and transport semantics 2023-02-12 13:05:11 +01:00
Drew DeVault 5e205199dc Fish transport config through various types 2023-02-12 12:55:16 +01:00
Drew DeVault c76599f71c transport: don't export new_reader
The semantics are internal
2023-02-12 12:52:48 +01:00
Drew DeVault d350e8ccd9 s/client_add_header/client_default_header/ 2023-02-12 12:21:03 +01:00
Drew DeVault fa4defb964 transport: add config options (unimplemented) 2023-02-12 12:14:19 +01:00
Drew DeVault 0e4277ded9 Improve support riggings for Transfer-Encoding 2023-02-12 11:04:05 +01:00
Drew DeVault 8edf406c52 Drop obsolete comments 2023-02-11 17:19:26 +01:00
Drew DeVault 946c985a02 Rig out transport handling, finish identity reader
New patch will implement more transports, such as chunked and gzip.
2023-02-11 11:31:07 +01:00
Drew DeVault 91e0a6874b net::http: add status code utilities 2023-02-11 11:16:15 +01:00
Drew DeVault 6b36cfcff5 Improve error handling 2023-02-11 11:03:51 +01:00
Drew DeVault 4ce86752b3 net::http::header_set: rename from set_header 2023-02-10 14:28:25 +01:00
Drew DeVault 0eef917610 net::http::*_header: rename to header_* 2023-02-10 14:19:08 +01:00
Drew DeVault b297d9d3a0 net::http::get et al: perform request 2023-02-10 14:18:01 +01:00
Drew DeVault ca93a48b12 Implement HTTP response parsing and reader
TODO: Handle Transfer-Encoding and Content-Length properly
2023-02-10 14:09:28 +01:00
Drew DeVault 1c1de31c1a net::http::do: prepare read buffer 2023-02-10 10:52:15 +01:00
Drew DeVault a567ff4418 net::http::do: remove context struct 2023-02-10 10:34:57 +01:00
Drew DeVault 859c8dc06e net::http::do: place buffer on stack
We can afford 4K of stack space
2023-02-10 10:27:14 +01:00
Drew DeVault 8ccb846c55 net::http::do: assert http
Until we implement TLS
2023-02-10 10:16:18 +01:00
Drew DeVault 26b21689b5 (Partially) implement net::http::do 2023-02-10 10:13:30 +01:00
Drew DeVault 8cde44d639 http::new_request: wrap Host in [] for ipv6 2023-02-09 23:31:12 +01:00
Drew DeVault 4bb0cd5c7e Add client struct and request helpers 2023-02-09 23:23:05 +01:00
Drew DeVault a0bfaef6ba Initial commit 2023-02-09 20:56:48 +01:00
Drew DeVault ea1a5ceb8d Initial commit 2023-02-09 11:45:25 +01:00