Commit graph

71 commits

Author SHA1 Message Date
39c31d9651
important fix for buffered stream + code cleanup
a `TlsStream<TcpStream>` was being wrapped in a `BufReader` during header parsing,
but then the pure stream (without BufReader) was being passed into a Response constructor,
discarding all content in an internal BufReader's buffer,
resulting in an incomplete body (truncated at the beginning)
or empty at all
2024-08-06 18:33:11 +04:00
dbbcf322c3
feat: add Status::num() for handy conversion enum->u8 2024-08-06 12:27:48 +04:00
6bd101504d
feat: add ensure_ok for simple 20/non-20 matching 2024-08-06 12:26:59 +04:00
49a50aecd9
fix: allow pub access to SelfsignedCert fields 2024-08-06 11:09:40 +04:00
a1ddbed7a9
fix: API in ::certs::insecure 2024-08-06 11:08:35 +04:00
dcd6359fcc
feat: improve API in ::certs::fingerprint 2024-08-06 11:07:35 +04:00
1d6e22238c
feat: ClientBuilder 2024-08-05 16:09:39 +04:00
16af1c1bd0
refactor/feat: Response::bytes() and text(), rename body->stream 2024-08-05 12:04:35 +04:00
19e1148989
feat: custom cert verifier to support self-signed, fingerprint generator 2024-08-02 21:22:19 +04:00
86fb310e71
feat/refactor: add Client::request_with_host, move main code into it 2024-08-01 20:16:28 +04:00
d462cd4fbe
refactor: move client into separate mod 2024-08-01 20:10:09 +04:00
2b6150a8e5
fix: allow all status codes with catch_all
10..69 range is still checked, see comment at L52
2024-08-01 12:35:50 +04:00
0a77d0c2e9
docs: add comments (and blank lines) 2024-08-01 12:28:13 +04:00
16fc740397
fix: trim \r from message
mime type couldn't be parsed because of this
2024-08-01 11:59:32 +04:00
2d3a19c60d
feat: add &str utf8 conv error to LibError enum 2024-08-01 11:59:05 +04:00
9b80902390
fix: return mutable ref to BodyStream 2024-08-01 11:58:34 +04:00
6efe51bb15
feat: add impl Debug 2024-08-01 10:32:55 +04:00
e92f0c62a2
feat: return LibError from Response::mime(&Self) 2024-08-01 10:29:34 +04:00
a6040176fb
feat: expose all modules 2024-08-01 10:28:45 +04:00
4cf9278cad
feat: basic client (untested) 2024-07-31 22:14:29 +04:00
c013ebf7dc
template, libs, impl Default/From 2024-07-31 16:58:17 +04:00