File size: 517 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
use hyper::{HeaderMap, Uri};
use turbo_tasks::{NonLocalValue, trace::TraceRawVcs};

use super::Body;

/// A request to a content source.
#[derive(Debug, Clone, NonLocalValue, TraceRawVcs)]
pub struct SourceRequest {
    /// The HTTP method to use.
    pub method: String,
    /// The URI to request.
    #[turbo_tasks(trace_ignore)]
    pub uri: Uri,
    /// The headers to send.
    #[turbo_tasks(trace_ignore)]
    pub headers: HeaderMap<hyper::header::HeaderValue>,
    /// The body to send.
    pub body: Body,
}