You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: impit/src/request.rs
+1-11Lines changed: 1 addition & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ use std::{collections::HashMap, time::Duration};
5
5
/// Unlike the [`ImpitBuilder`](crate::impit::ImpitBuilder) struct, these options are specific to a single request.
6
6
///
7
7
/// Used by the [`Impit`](crate::impit::Impit) struct's methods.
8
-
#[derive(Debug,Clone)]
8
+
#[derive(Debug,Clone,Default)]
9
9
pubstructRequestOptions{
10
10
/// A `HashMap` that holds custom HTTP headers. These are added to the default headers and should never overwrite them.
11
11
pubheaders:HashMap<String,String>,
@@ -16,13 +16,3 @@ pub struct RequestOptions {
16
16
/// If [`ImpitBuilder::with_http3`](crate::impit::ImpitBuilder::with_http3) wasn't called, this option will cause [`ErrorType::Http3Disabled`](crate::impit::ErrorType::Http3Disabled) errors.
0 commit comments