mirror of
https://github.com/TrueLayer/reqwest-middleware.git
synced 2024-12-27 11:26:31 +00:00
add fetch_mode_no_cors_method (#108)
* add fetch_mode_no_cors_method * Update changelog * Bump verion
This commit is contained in:
parent
efdd52f2fa
commit
de1b651bcc
3 changed files with 13 additions and 1 deletions
|
@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
|
||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
### [0.2.4] - 2023-09-21
|
||||||
|
|
||||||
|
### Added
|
||||||
|
- Added `fetch_mode_no_cors` method to `reqwest_middleware::RequestBuilder`
|
||||||
|
|
||||||
## [0.2.3] - 2023-08-07
|
## [0.2.3] - 2023-08-07
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "reqwest-middleware"
|
name = "reqwest-middleware"
|
||||||
version = "0.2.3"
|
version = "0.2.4"
|
||||||
authors = ["Rodrigo Gryzinski <rodrigo.gryzinski@truelayer.com>"]
|
authors = ["Rodrigo Gryzinski <rodrigo.gryzinski@truelayer.com>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
description = "Wrapper around reqwest to allow for client middleware chains."
|
description = "Wrapper around reqwest to allow for client middleware chains."
|
||||||
|
|
|
@ -282,6 +282,13 @@ impl RequestBuilder {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn fetch_mode_no_cors(self) -> Self {
|
||||||
|
RequestBuilder {
|
||||||
|
inner: self.inner.fetch_mode_no_cors(),
|
||||||
|
..self
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
pub fn build(self) -> reqwest::Result<Request> {
|
pub fn build(self) -> reqwest::Result<Request> {
|
||||||
self.inner.build()
|
self.inner.build()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue