mirror of
https://github.com/dathere/ckanaction.git
synced 2026-07-05 17:12:19 +00:00
feat: add full_response feature
This commit is contained in:
parent
0b8ffbf53c
commit
a3e0df7318
3 changed files with 49 additions and 0 deletions
|
|
@ -6,6 +6,12 @@ Rust library crate to access [CKAN](https://ckan.org) Action API endpoints throu
|
|||
cargo add ckanaction
|
||||
```
|
||||
|
||||
If you want to return the full [`reqwest::Response`](https://docs.rs/reqwest/latest/reqwest/struct.Response.html) instead of attempting to deserialize the response to JSON by default (e.g. erroneous response such as a Cloudflare firewall), include the `full_response` feature flag so you can add error handling in your code:
|
||||
|
||||
```bash
|
||||
cargo add ckanaction -F full_response
|
||||
```
|
||||
|
||||

|
||||
|
||||
## Examples
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue