Quentin Gliech
6eb6209bd8
Use rustls-platform-verifier for cert validation
...
This simplifies by removing the mutually exclusive `native-roots` and
`webpki-roots` features with something that is suitable for all
platforms.
2024-03-06 14:03:59 +01:00
Quentin Gliech
a0f5f3c642
Enable clippy lints on a workspace level
...
This enables a lot more lints than before in some crates, so this fixed a lot of warnings as well.
2023-12-05 17:20:42 +01:00
Quentin Gliech
54071c4969
Make the HTTP client factory reuse the underlying client
...
This avoids duplicating clients, and makes it so that they all share the same connection pool.
2023-09-14 16:52:01 +02:00
Quentin Gliech
08f58db08b
Replace the OTEL-based tracing layer with tracing based layers
2023-04-18 14:45:43 +02:00
Quentin Gliech
e8c8d0bf8a
Remove the ServerLayer from mas-http
2022-12-05 19:39:51 +01:00
Quentin Gliech
4227fa7a83
Add a global HTTP client factory
2022-12-05 19:39:51 +01:00
Quentin Gliech
d514a8922c
Cleanup HTTP client building
2022-12-05 19:39:51 +01:00
Quentin Gliech
7f9be07e8d
Move the BoxCloneSyncService to mas-http
2022-12-05 19:39:51 +01:00
Quentin Gliech
a414936484
Trace AWS operations & share TLS connector with mas-http
2022-11-03 18:08:20 +01:00
Jonas Platte
cf6d5a076a
Use new tuple Layer impls instead of ServiceBuilder ( #475 )
...
Co-authored-by: Quentin Gliech <quenting@element.io >
2022-10-17 16:48:12 +02:00
Quentin Gliech
7b819ffa8b
Simplify the HTTP client building
...
Also supports loading the WebPKI roots instead of the native ones for
TLS
2022-09-27 19:05:25 +02:00
Kévin Commaille
348044afdc
Make HTTP request layers convert to Bytes
...
Add layer to convert a request's Bytes to a Body.
2022-08-23 12:25:38 +02:00
Quentin Gliech
185ff622f9
Gate some crates behind features in mas-http
2022-08-19 10:51:24 +02:00
Quentin Gliech
9fe541f7b6
Add a layer to catch HTTP error codes
2022-08-19 10:51:24 +02:00
Quentin Gliech
398379e21b
Better Tower layers
2022-08-19 10:51:24 +02:00
Quentin Gliech
c1ed726dc8
Enable the clippy::str_to_string lint
2022-08-08 10:06:20 +02:00
Quentin Gliech
4870d1e899
Fix some false-positive clippy lints
...
Those were introduced in clippy 1.62 (under clippy::pedantic) and are in
proc-macro generated code
2022-07-01 16:36:35 +02:00
Quentin Gliech
bc24e30867
Add CORS headers to API-like routes
2022-04-07 16:25:42 +02:00
Quentin Gliech
b81f4caace
Better OpenTelemetry tracer
2022-02-24 16:03:37 +01:00
Quentin Gliech
c5858e6ed5
Many improvements to the mas-http crate
...
- make `mas_http::client` implement Service directly instead of being
an async function
- a Get layer that makes a Service<Uri>
- better error sources in the JSON layer
- make the client have a proper error type
2022-02-15 08:28:25 +01:00
Quentin Gliech
497a3e006e
Implement a JSON tower layer
...
This will help requesting JSON APIs
2022-02-11 14:15:31 +01:00
Quentin Gliech
8c36e51176
Proper HTTP client
2022-02-10 16:38:17 +01:00
Quentin Gliech
2df40762a2
Dedicated HTTP server/client crate
...
Also have better names for the HTTP routes
2022-02-10 16:38:16 +01:00