Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- `oath-adapter-net-http-api` HTTP contract — `HttpError` (one concrete
transport/middleware error; HTTP statuses pass through as `Ok(Response)`),
`HttpClient` (blanket-impl'd `Service` sub-trait), `ResponseBody` (buffer-xor-
stream, forwarding `Body` metadata), and `BufferMode`. New `oath-adapter-net-
http-mock` test harness (`MockClient`, `MockBody`, `MockTimer`).
- WebSocket transport design: ADR-0032 (contract — untyped duplex frame channel,
asymmetric `Stream`/RPITIT split, epoch-stamped lifecycle, `WsConnector` leaf,
per-transport `AuthSource`) and ADR-0033 (resilience — reconnect actor over a
Expand Down
192 changes: 192 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ members = [
"crates/model",
"crates/adapter/net/api",
"crates/adapter/net/http/api",
"crates/adapter/net/http/mock",
"crates/bus/api",
"crates/event-log/api",
"crates/persistence/api",
Expand Down Expand Up @@ -42,6 +43,7 @@ categories = ["finance", "asynchronous"]
oath-model = { path = "crates/model", version = "0.1.0" }
oath-adapter-net-api = { path = "crates/adapter/net/api", version = "0.1.0" }
oath-adapter-net-http-api = { path = "crates/adapter/net/http/api", version = "0.1.0" }
oath-adapter-net-http-mock = { path = "crates/adapter/net/http/mock", version = "0.1.0" }
oath-bus-api = { path = "crates/bus/api", version = "0.1.0" }
oath-event-log-api = { path = "crates/event-log/api", version = "0.1.0" }
oath-persistence-api = { path = "crates/persistence/api", version = "0.1.0" }
Expand All @@ -57,6 +59,8 @@ oath-core-kernel = { path = "crates/core/kernel", version = "0.1.0" }
bytes = "1"
http = "1"
http-body = "1"
http-body-util = "0.1"
pin-project-lite = "0.2"
futures-core = { version = "0.3", default-features = false }
futures-sink = { version = "0.3", default-features = false }
serde = { version = "1", features = ["derive"] }
Expand Down
12 changes: 12 additions & 0 deletions crates/adapter/net/http/api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,17 @@ edition.workspace = true
rust-version.workspace = true
license.workspace = true

[dependencies]
oath-adapter-net-api = { workspace = true }
thiserror = { workspace = true }
http = { workspace = true }
bytes = { workspace = true }
http-body = { workspace = true }
http-body-util = { workspace = true }
pin-project-lite = { workspace = true }

[dev-dependencies]
tokio = { workspace = true }

[lints]
workspace = true
Loading