Function nginx_config::parse_main[][src]

pub fn parse_main(s: &str) -> Result<Main, ParseError>

Parses a piece of config in "main" context (i.e. top-level)

Currently, this is the same as parse_directives (except wraps everyting to a Main struct), but we expect to add validation/context checks in this function.