pub struct Gateway {
pub http_headers: HashMap<String, Vec<String>>,
pub root_redirect: String,
pub no_fetch: bool,
pub no_dns_link: bool,
pub deserialized_responses: Option<Flag>,
pub disable_html_errors: Option<Flag>,
pub public_gateways: HashMap<String, GatewaySpec>,
pub expose_routing_api: Option<Flag>,
pub retrieval_timeout: Option<OptionalDuration>,
pub max_concurrent_requests: Option<OptionalInteger>,
pub max_range_request_file_size: Option<OptionalString>,
pub diagnostic_service_url: Option<OptionalString>,
}Expand description
Gateway configuration section
Fields§
§http_headers: HashMap<String, Vec<String>>HTTP headers to include in responses
root_redirect: StringRoot redirect URL
no_fetch: boolDisable fetching content from network
no_dns_link: boolDisable DNSLink resolution
deserialized_responses: Option<Flag>Enable deserialized responses
disable_html_errors: Option<Flag>Disable HTML error pages
public_gateways: HashMap<String, GatewaySpec>Public gateway configurations by hostname
expose_routing_api: Option<Flag>Expose routing API
retrieval_timeout: Option<OptionalDuration>Content retrieval timeout
max_concurrent_requests: Option<OptionalInteger>Maximum concurrent requests
max_range_request_file_size: Option<OptionalString>Maximum file size for range requests
diagnostic_service_url: Option<OptionalString>Diagnostic service URL
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Gateway
impl<'de> Deserialize<'de> for Gateway
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Gateway
impl RefUnwindSafe for Gateway
impl Send for Gateway
impl Sync for Gateway
impl Unpin for Gateway
impl UnwindSafe for Gateway
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more