Commit Graph

23 Commits

Author SHA1 Message Date
Adam Leventhal c40c13c711
add AsRef for ResponseValue (#714) 2024-02-06 11:01:58 -08:00
Joshua M. Clulow 3ff2ec1d5f
allow request mutation and async code in prehooks (#457) 2024-02-04 11:19:07 -08:00
John Vandenberg 4a182d734e
Require docs for public members (#614) 2024-01-06 11:30:42 -08:00
Everett Pompeii 8b6b91d6ba
Include Response bytes when payload didn't deserialize as expected (#655) 2023-12-29 09:27:08 -08:00
Dillen Meijboom d329bc0912
Add support for wasm (#278) 2023-04-25 21:50:04 -07:00
Adam Leventhal 582e20c397
slashes are not properly %-encoded in path parameters (#304) 2023-01-13 10:58:18 -08:00
Artem Medvedev e34756583a
feat: support header parameters (#210) 2023-01-04 11:14:37 -08:00
Adam Leventhal dcee6a4eb2
clippy nits (#269) 2022-12-07 18:46:14 -08:00
liffy 4e2dcc5365
Generate a Client method for Dropshot websocket channels (#183)
Generated methods return `ResponseValue<reqwest::Upgrade`, which may be
passed to a websocket protocol implementation such as
`tokio_tungstenite::WebSocketStream::from_raw_stream(rv.into_inner(), ...)`
for the purpose of implementing against the raw websocket connection, but
may later be extended as a generic to allow higher-level channel message
definitions.

Per the changelog, consumers will need to depend on reqwest 0.11.12 or
newer for HTTP Upgrade support, as well as base64 and rand if any
endpoints are websocket channels:
```
[dependencies]
reqwest = { version = "0.11.12" features = ["json", "stream"] }
base64 = "0.13"
rand = "0.8"
```

Co-authored-by: lif <>
2022-09-28 13:40:07 -07:00
Joshua M. Clulow 8ad09386a7
code generation fixes after 03e2cfad3c (#124) 2022-07-15 13:59:09 -07:00
Adam Leventhal 5a72e1b8e7
add ByteStream::new (#128)
also gussy up progenitor-client docs
2022-07-15 10:42:06 -07:00
Joshua M. Clulow 6ca5670819
ResponseValue could expose Content-Length (#123) 2022-07-14 22:34:50 -07:00
Joshua M. Clulow 144ef6b9f3
allow ResponseValue<ByteStream> to transfer ownership of interior Stream (#125) 2022-07-14 22:33:17 -07:00
Adam Leventhal 236efadeee
improve panic/unwrap message for user-typed errors (#110) 2022-07-08 11:24:37 -07:00
Adam Leventhal 03e2cfad3c
add support for application/x-www-form-urlencoded bodies (#109)
* add support for application/x-www-form-urlencoded bodies

* self review

* alphabetizing

* remove commented code

* update changelog
2022-07-07 18:35:36 -07:00
Adam Leventhal 9b28ac87c6
add an optional builder pattern as well as extension traits for tags when using the builder interface (#86) 2022-07-02 19:09:38 -07:00
Adam Leventhal eec8526ba5
cleanup and documentation (#67) 2022-05-21 18:00:05 -07:00
Adam Leventhal 30d64120af
remove cross-package file dependency by adding progenitor_client::code() (#52) 2022-05-13 10:26:22 -07:00
Adam Leventhal b7bbb5cdff
update ByteStream type to include Pin (#36) 2022-03-16 13:30:49 -07:00
Adam Leventhal ea80069ef3
Handle byte streams for both success and error responses (#35) 2022-03-15 16:11:47 -07:00
Adam Leventhal 39b1d9107d
add helper functions to Error and ResponseValue (#28) 2022-02-23 21:07:30 -08:00
Adam Leventhal 25192b5dc1
Add a wrapper types for success and error responses (#26) 2022-02-08 08:59:38 -08:00
Adam Leventhal 7934be90b9
a variety of improvements to support omicron clients (#12)
- add the start of a client support crate
- add support for pre/post request hooks with consumer-specific data
- suggest type names for parameter and response types in case those
  types are unnamed
- handle more reference types by resolving them properly
- improve optional parameter generation
2021-10-29 07:16:39 -07:00