Skip to main content

DEFAULT_ACCEPT

Constant DEFAULT_ACCEPT 

Source
pub const DEFAULT_ACCEPT: &str = "text/lino, application/json;q=0.5";
Expand description

Default Accept sent by the client: Links Notation first, JSON as a fallback.

Spelled out rather than built from crate::media_type::LINO_CONTENT_TYPE, because a constant cannot be formatted at compile time; the assertion in tests/client.rs keeps the two in step.