net/fetch/
fetch_params.rs

1/* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
4
5use net_traits::request::Request;
6
7/// <https://fetch.spec.whatwg.org/#fetch-params>
8#[derive(Clone)]
9pub struct FetchParams {
10    /// <https://fetch.spec.whatwg.org/#concept-request>
11    pub request: Request,
12}
13
14impl FetchParams {
15    pub fn new(request: Request) -> FetchParams {
16        FetchParams { request }
17    }
18}