Commit graph

92 commits

Author SHA1 Message Date
17ba4060b8
feat: add file-based ss cert verifier (move from main example), v0.4.0 2024-08-06 21:03:29 +04:00
700981a5e3
refactor: move trait SelfsignedCertVerifier and all related to mod.rs 2024-08-06 20:40:39 +04:00
c6567beed7
refactor: mod client, move builder to ::client::builder 2024-08-06 20:32:56 +04:00
96a6ad34a0
style: cargo clippy --fix 2024-08-06 20:27:12 +04:00
e93a177b25
feat: add Response::is_ok 2024-08-06 20:15:40 +04:00
17531f7938
chore: bump version 2024-08-06 18:47:00 +04:00
47c1c20ff0
docs: update todo 2024-08-06 18:46:01 +04:00
1395bb04ff
fix: CryptoProvider::get_default returned None 2024-08-06 18:36:40 +04:00
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
4f52475f2c
add simple.rs example 2024-08-06 12:32:42 +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
053f042e00
feat: do not use webpki roots in main example 2024-08-06 12:02:09 +04:00
79b17313e7
docs: add package list to main example 2024-08-06 12:01:41 +04:00
5533ec0d2b
update main example: proper ss cert check, changes in lib API 2024-08-06 11:57:42 +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
dfeaa50440
chore: bump version 2024-08-05 16:28:48 +04:00
74cd4458dc
docs: add WIP-message and "todo" 2024-08-05 16:27:55 +04:00
f5c218efb8
docs: fix description style 2024-08-05 16:20:28 +04:00
fa7626b78a
fix(example): args parser 2024-08-05 16:09:59 +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
2ca51a5a20
chore(deps): cargo update 2024-08-05 12:02:51 +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
5dc0dadaa9
docs: add minimal readme 2024-08-01 16:41:28 +04:00
9952f1890c
add fields to manifest 2024-08-01 16:39:42 +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
95362fd9e8
feat: add example and dev deps
Note: current version of main.rs example just disables TLS cert verification if `-k` arg provided.
Instead, it must use custom storage for self-signed certs.

tokio with macros & fs features in dev deps is needed for main.rs example.
2024-08-01 12:05:39 +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
aceebec883
docs: license 2024-07-31 17:00:04 +04:00
c013ebf7dc
template, libs, impl Default/From 2024-07-31 16:58:17 +04:00