Skip to main content

parse_prefer_header

Function parse_prefer_header 

Source
pub fn parse_prefer_header(input: &str) -> Result<PreferOptions, Error>
Expand description

Parses a full Prefer header value

Format: “option1=value1, option2=value2, …”

§Examples

use postgrest_parser::parser::parse_prefer_header;

let opts = parse_prefer_header("return=representation, count=exact").unwrap();