Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ureq 3.x #762

Merged
merged 171 commits into from
Aug 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
171 commits
Select commit Hold shift + click to select a range
12f59ff
Clean slate for ureq 3.x
algesten Jul 3, 2024
d834ddd
Start shaping signatures
algesten Jul 3, 2024
495b54a
Start using hoot
algesten Jul 3, 2024
293517d
Pools and stuff
algesten Jul 4, 2024
efc3e68
Start of internal Sans-IO polling
algesten Jul 4, 2024
533681c
Polling and body woes
algesten Jul 6, 2024
84f9a94
More body woes
algesten Jul 6, 2024
6acb143
More body things
algesten Jul 6, 2024
1b6abb9
Replace Flow<B> type param with Flow<()>
algesten Jul 6, 2024
c80cfcd
Body writing
algesten Jul 6, 2024
d0cc5a9
Remove unused Arc
algesten Jul 6, 2024
0bab1c4
poll/handle driving of unit
algesten Jul 7, 2024
225817b
Clean up some timers
algesten Jul 7, 2024
bed9245
current_time() and start of redirection
algesten Jul 7, 2024
c07e02c
transport Buffers type
algesten Jul 7, 2024
e0dbc20
Handle redirect
algesten Jul 7, 2024
815c04f
Code formatting
algesten Jul 7, 2024
d11502c
Remove InputUsed event
algesten Jul 7, 2024
16aa1b6
Code cleanup
algesten Jul 7, 2024
d303fce
Body reading
algesten Jul 7, 2024
4549839
Remove is_test() (for now)
algesten Jul 8, 2024
8d13eeb
DefaultResolver only lookup async when needed
algesten Jul 8, 2024
f264b24
Proxy and PoolKey
algesten Jul 8, 2024
8a4259f
Start work with transport
algesten Jul 8, 2024
19ce6e5
Move SchemeExt to util
algesten Jul 8, 2024
bc70ea2
Fix warnings
algesten Jul 9, 2024
e317385
TcpTransport
algesten Jul 9, 2024
0838358
Some refactoring for Send/Sync
algesten Jul 9, 2024
9e37851
Test for Send/Sync
algesten Jul 9, 2024
45bded7
DefaultConnector use TcpConnector
algesten Jul 9, 2024
eaf0de6
Almost got a http call through
algesten Jul 9, 2024
7267ecb
First working request
algesten Jul 9, 2024
685dbaf
Start of TLS
algesten Jul 10, 2024
68b5659
TLS working
algesten Jul 10, 2024
b3a94d1
Fix for early disconnects
algesten Jul 10, 2024
63c4ccc
Move TransportAdapter to transport::io
algesten Jul 10, 2024
6621f3c
Ensure MSRV 1.63
algesten Jul 10, 2024
d50082c
Move overhead calculation to hoot
algesten Jul 10, 2024
c26c825
Remove a memcopy on content-length delimited send bodies
algesten Jul 10, 2024
8aee1cb
RustlsConnector use ring crypto provider
algesten Jul 10, 2024
4aac934
Rework Buffers
algesten Jul 11, 2024
bf16e50
Visibility changes
algesten Jul 11, 2024
807a38c
socks-proxy support
algesten Jul 11, 2024
feeae84
Improve logging
algesten Jul 11, 2024
4d04c22
TransportAdapter::new is public
algesten Jul 11, 2024
0da7f2b
Follow redirects
algesten Jul 11, 2024
cc0c381
Start of pooling
algesten Jul 11, 2024
91cd8c7
Improve pool
algesten Jul 12, 2024
4045bef
Cookie support
algesten Jul 12, 2024
fbd3c71
Make all ureq::xxx methods
algesten Jul 12, 2024
53c2a8e
Make all Agent::xxx methods
algesten Jul 12, 2024
2921883
Rename RecvBody -> Body, Body -> SendBody
algesten Jul 12, 2024
eb2320f
Body reader helpers
algesten Jul 12, 2024
2fa29a4
Make our own Cookie API
algesten Jul 12, 2024
8a4953b
cargo fmt
algesten Jul 12, 2024
4949b56
MSRV 1.67
algesten Jul 12, 2024
bbb2d3b
Use let-else where we can
algesten Jul 12, 2024
6319241
Fix clippy
algesten Jul 12, 2024
82561a7
github build 1.67
algesten Jul 12, 2024
c2357e0
Rename feature tls -> _tls
algesten Jul 12, 2024
c7ff98b
gzip and brotli support
algesten Jul 12, 2024
f4dae51
github CI concurrency setting
algesten Jul 12, 2024
9910220
charset feature
algesten Jul 13, 2024
cf2fba8
LazyBuf use ConsumeBuf
algesten Jul 13, 2024
ccdb91e
clippy fixes
algesten Jul 13, 2024
f5dfc63
Move body.rs -> body/mod.rs
algesten Jul 13, 2024
dc5e334
Move charset.rs -> body/charset.rs
algesten Jul 13, 2024
61e1164
Move UnitHandler to handler.rs
algesten Jul 13, 2024
b849f4d
Move LimitReader to limit.rs
algesten Jul 13, 2024
acb37e0
Split UnitHandlerRef and LimitReader
algesten Jul 13, 2024
4bd0386
Move brotli/gzip decoders to separate files
algesten Jul 13, 2024
ca1f66c
Update Cargo.lock
algesten Jul 13, 2024
5cdf3d7
Use no_delay
algesten Jul 13, 2024
aeaf995
Probe TcpStream is open before returning from pool
algesten Jul 13, 2024
cd3541c
Ensure we dont log secrets
algesten Jul 13, 2024
8f9ff37
Fix get_mut on TransportAdapter
algesten Jul 13, 2024
15ee768
Fix clippy
algesten Jul 13, 2024
f96df73
Log Request
algesten Jul 13, 2024
6e2b778
Do not add empty cookie header
algesten Jul 13, 2024
bf18f9f
Start documenting and tweak API
algesten Jul 13, 2024
f3e0456
Test server
algesten Jul 13, 2024
5347303
Make a bunch pub -> pub(crate)
algesten Jul 14, 2024
2a6a233
Rename AsBody -> AsSendBody
algesten Jul 14, 2024
1d0959f
Split RequestBuilder in WithBody/WithoutBody
algesten Jul 14, 2024
926432c
Re-add missing builder methods
algesten Jul 14, 2024
90ade4b
Body mode depending on content
algesten Jul 14, 2024
f9878ee
TimeoutReason for every timeout
algesten Jul 14, 2024
d49971a
(Duration, TimeoutReason) -> NextTimeout
algesten Jul 16, 2024
c7ecf82
cargo fmt
algesten Jul 17, 2024
9aa7160
doc
algesten Jul 17, 2024
8c89d60
TlsProvider setting
algesten Jul 17, 2024
4effb51
Add non_exhaustive to public enums
algesten Jul 18, 2024
9e8d1fb
Panic on missing TLS providers
algesten Jul 18, 2024
4ea336a
Document TLS
algesten Jul 18, 2024
65e0676
Half document transport
algesten Jul 18, 2024
c0aeec9
Move Proxy config to AgentConfig
algesten Jul 18, 2024
42fe730
Document transport
algesten Jul 18, 2024
9afd5fa
Move time to transport/time
algesten Jul 18, 2024
f92cd74
Document resolver
algesten Jul 18, 2024
0d80a40
Document errors
algesten Jul 18, 2024
5e7f34e
Fix no socks proxy compilation
algesten Jul 18, 2024
af8fedd
Document and make parts of Proxy public
algesten Jul 18, 2024
408baa5
Refactor tests to allow test specific handlers
algesten Jul 19, 2024
1aabf4e
Enforce https_only
algesten Jul 19, 2024
22c55b6
Make AgentConfig require ..Default::default()
algesten Jul 19, 2024
f64487a
Refactor out AgentConfig to config.rs
algesten Jul 19, 2024
5e5a54f
Ensure AgentConfig use std::time::Duration
algesten Jul 19, 2024
1c072d2
Reorder AgentConfig opts
algesten Jul 19, 2024
e67ec62
Treat 4xx/5xx as error
algesten Jul 19, 2024
5228322
Straigten out AgentConfig construction
algesten Jul 19, 2024
0fdcf80
Test for native-tls
algesten Jul 19, 2024
9441c2d
Fix underrun bugs in reading chunked/charset
algesten Jul 20, 2024
c5e1a78
Set user-agent
algesten Jul 20, 2024
1b5ed7e
Debug output for body reader
algesten Jul 20, 2024
18ac2de
Test uri for PoolKey
algesten Jul 20, 2024
a615fab
Fix broken doc links
algesten Jul 20, 2024
89949aa
Fix dead_code
algesten Jul 20, 2024
54764e9
Expose pool size to tests
algesten Jul 20, 2024
97eb08b
Probe before pooling connection
algesten Jul 20, 2024
0dc1f8b
Fake resolve with _test feature
algesten Jul 20, 2024
e0c97ef
Test for gz + chunked
algesten Jul 20, 2024
23c0c17
#[must use] on some things
algesten Jul 20, 2024
390e858
Rewrite receive body handler
algesten Jul 21, 2024
3fa0531
Test content-types
algesten Jul 21, 2024
03d8186
Rename let resp -> let res
algesten Jul 21, 2024
399e34d
Test for BodyExceedsLimit
algesten Jul 21, 2024
1bf477a
LargeResponseHeader test
algesten Jul 21, 2024
20e3e4e
Test for non-ascii status reason
algesten Jul 21, 2024
a4ce919
Simple cureq
algesten Jul 21, 2024
efc512f
Adjust body reading logic
algesten Jul 22, 2024
9da2630
Reverse error order cureq
algesten Jul 22, 2024
ebec6b9
Read again if not enough body content
algesten Jul 22, 2024
99c81d4
cureq env_logger
algesten Jul 22, 2024
61a9234
Better handling out output
algesten Jul 22, 2024
4fe8127
cureq fix output lines
algesten Jul 22, 2024
e0e07a6
Bump hoot (to handle chunk trailers)
algesten Jul 23, 2024
b3847b0
Rework body handler (once again)
algesten Jul 23, 2024
ce86010
Up max header size to 64KB
algesten Jul 23, 2024
5daa414
Bump hoot (fixes in chunk)
algesten Jul 23, 2024
2e713ae
Fix broken test
algesten Jul 24, 2024
3e854b9
Bump hoot to fix redirect location bug
algesten Jul 24, 2024
c39eec6
Ensure scheme is known
algesten Jul 24, 2024
9709d1a
update openssl
algesten Jul 27, 2024
5715d12
Do not set accept-encoding/user-agent if set
algesten Jul 27, 2024
e4e4f80
Bump hoot (partial redirect)
algesten Jul 27, 2024
a90a1c6
Fix redact user-agent
algesten Jul 27, 2024
3c7ef60
Lossy reader
algesten Jul 27, 2024
f0fe113
Fix broken compilation
algesten Jul 27, 2024
a6f436b
Add missing doc
algesten Jul 27, 2024
0d0835d
Clarify error for gzip/brotli decompression
algesten Jul 28, 2024
244efd2
BodyReaderConfig and rework body API
algesten Jul 28, 2024
cc07ade
Start of lib.rs main doc
algesten Jul 28, 2024
e8b16f6
json feature
algesten Jul 28, 2024
37ae0c9
Improve doc
algesten Jul 28, 2024
e1dee1c
Rejig the body API (again)
algesten Jul 28, 2024
9e80d9b
Remove meaningless conf
algesten Jul 28, 2024
b5d355a
Fix broken test
algesten Jul 28, 2024
825319f
Document error handling
algesten Jul 28, 2024
69e021e
Fix tests
algesten Jul 28, 2024
a809281
Document features
algesten Jul 28, 2024
05398e9
Document JSON, sending body data, charset and proxying
algesten Jul 28, 2024
b571f8f
RequestBuilder::content_type helper function
algesten Aug 9, 2024
f3737c2
Fix panic with chunked 0 size bodies
algesten Aug 9, 2024
d78c14c
Fix panic in cookie url parsing
algesten Aug 9, 2024
5600ec0
Test HEAD request
algesten Aug 10, 2024
f2867f1
Log incorrect Unit::State name
algesten Aug 10, 2024
e86fc89
Clippy fixes
algesten Aug 10, 2024
72bbc29
Reworks native-roots, use rustls-platform-verifier
algesten Aug 12, 2024
08287de
RootCerts::WebPki config feature
algesten Aug 12, 2024
3dbd8c8
CONNECT proxy support
algesten Aug 12, 2024
01ee307
Use process-wide default rustls backend if set
laniakea64 Aug 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions .github/dependabot.yml

This file was deleted.

18 changes: 7 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ on: [push, pull_request]

name: CI

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
lint:
name: Lint
Expand Down Expand Up @@ -45,7 +49,7 @@ jobs:
build_versions:
strategy:
matrix:
rust: [stable, beta, 1.63.0]
rust: [stable, beta, 1.67.0]
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v2
Expand All @@ -67,22 +71,14 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
tls:
- ""
- "tls"
- "native-tls"
feature:
- ""
- json
- charset
- cookies
- socks-proxy
- native-certs
- gzip
- brotli
- http-crate
- http-interop
- http-crate http-interop
- json
env:
RUST_BACKTRACE: "1"
RUSTFLAGS: "-D dead_code -D unused-variables -D unused"
Expand All @@ -97,7 +93,7 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: test
args: --no-default-features --features "testdeps ${{ matrix.tls }} ${{ matrix.feature }}"
args: --no-default-features --features "_test rustls ${{ matrix.feature }}"


cargo-deny:
Expand Down
Loading
Loading