Skip to main content

load

Function load 

Source
pub fn load(text: &str) -> Result<Session, String>
Expand description

Read a session from a sketch page or a request body.

Which one it is comes from the text, not the file name: stdin has no extension, and a here-doc piped in should behave the same as the file it was copied from. A leading { is a request body; anything else is a page.