--- source: tests/parser.rs description: "\n post http://localhost {\n header \"Authorization\" \"Bearer token\"\n body \"{neet: 1337}\"\n }" expression: ast --- Program( source: "\n post http://localhost {\n header \"Authorization\" \"Bearer token\"\n body \"{neet: 1337}\"\n }", items: [ Request(Request( method: POST, endpoint: Url(Literal( value: "http://localhost", span: Span( start: Position( value: 14, line: 1, col: 13, ), end: Position( value: 29, line: 1, col: 28, ), ), )), block: Some(Block( statements: [ Header( name: Ok(StringLiteral( raw: "\"Authorization\"", value: "Authorization", span: Span( start: Position( value: 48, line: 2, col: 15, ), end: Position( value: 62, line: 2, col: 29, ), ), )), value: String(StringLiteral( raw: "\"Bearer token\"", value: "Bearer token", span: Span( start: Position( value: 64, line: 2, col: 31, ), end: Position( value: 77, line: 2, col: 44, ), ), )), ), Body( value: String(StringLiteral( raw: "\"{neet: 1337}\"", value: "{neet: 1337}", span: Span( start: Position( value: 92, line: 3, col: 13, ), end: Position( value: 105, line: 3, col: 26, ), ), )), start: Position( value: 87, line: 3, col: 8, ), ), ], span: Span( start: Position( value: 31, line: 1, col: 30, ), end: Position( value: 115, line: 4, col: 8, ), ), )), span: Span( start: Position( value: 9, line: 1, col: 8, ), end: Position( value: 115, line: 4, col: 8, ), ), )), ], )