There was an error while loading. Please reload this page.
1 parent bb00275 commit 72a5536Copy full SHA for 72a5536
1 file changed
src/client/client/mod.rs
@@ -1454,6 +1454,16 @@ impl Client {
1454
self.request(Method::HEAD, url)
1455
}
1456
1457
+ /// Convenience method to make a `OPTIONS` request to a URL.
1458
+ ///
1459
+ /// # Errors
1460
1461
+ /// This method fails whenever the supplied `Url` cannot be parsed.
1462
+ #[inline]
1463
+ pub fn options<U: IntoUrl>(&self, url: U) -> RequestBuilder {
1464
+ self.request(Method::OPTIONS, url)
1465
+ }
1466
+
1467
/// Start building a `Request` with the `Method` and `Url`.
1468
///
1469
/// Returns a `RequestBuilder`, which will allow setting headers and
0 commit comments