rested 0.11.0

Language/Interpreter for easily defining and running requests to an http server.
Documentation
---
source: tests/parser.rs
description: "\n        post /api {\n            body `{\"neet\": ${env(\"love\")}, 2: ${\"two\"}}`\n        }"
expression: ast
---
Program(
  source: "\n        post /api {\n            body `{\"neet\": ${env(\"love\")}, 2: ${\"two\"}}`\n        }",
  items: [
    Request(Request(
      method: POST,
      endpoint: Pathname(Literal(
        value: "/api",
        span: Span(
          start: Position(
            value: 14,
            line: 1,
            col: 13,
          ),
          end: Position(
            value: 17,
            line: 1,
            col: 16,
          ),
        ),
      )),
      block: Some(Block(
        statements: [
          Body(
            value: TemplateStringLiteral(
              span: Span(
                start: Position(
                  value: 38,
                  line: 2,
                  col: 17,
                ),
                end: Position(
                  value: 76,
                  line: 2,
                  col: 55,
                ),
              ),
              parts: [
                StringPart(StringLiteral(
                  raw: "{\"neet\": ",
                  value: "{\"neet\": ",
                  span: Span(
                    start: Position(
                      value: 39,
                      line: 2,
                      col: 18,
                    ),
                    end: Position(
                      value: 47,
                      line: 2,
                      col: 26,
                    ),
                  ),
                )),
                ExpressionPart(Call(CallExpr(
                  identifier: Ok(Token(
                    kind: Ident,
                    text: "env",
                    start: Position(
                      value: 50,
                      line: 2,
                      col: 29,
                    ),
                  )),
                  arguments: ExpressionList(
                    span: Span(
                      start: Position(
                        value: 53,
                        line: 2,
                        col: 32,
                      ),
                      end: Position(
                        value: 60,
                        line: 2,
                        col: 39,
                      ),
                    ),
                    items: [
                      This(String(StringLiteral(
                        raw: "\"love\"",
                        value: "love",
                        span: Span(
                          start: Position(
                            value: 54,
                            line: 2,
                            col: 33,
                          ),
                          end: Position(
                            value: 59,
                            line: 2,
                            col: 38,
                          ),
                        ),
                      ))),
                    ],
                  ),
                ))),
                StringPart(StringLiteral(
                  raw: ", 2: ",
                  value: ", 2: ",
                  span: Span(
                    start: Position(
                      value: 62,
                      line: 2,
                      col: 41,
                    ),
                    end: Position(
                      value: 66,
                      line: 2,
                      col: 45,
                    ),
                  ),
                )),
                ExpressionPart(String(StringLiteral(
                  raw: "\"two\"",
                  value: "two",
                  span: Span(
                    start: Position(
                      value: 69,
                      line: 2,
                      col: 48,
                    ),
                    end: Position(
                      value: 73,
                      line: 2,
                      col: 52,
                    ),
                  ),
                ))),
                StringPart(StringLiteral(
                  raw: "}",
                  value: "}",
                  span: Span(
                    start: Position(
                      value: 75,
                      line: 2,
                      col: 54,
                    ),
                    end: Position(
                      value: 75,
                      line: 2,
                      col: 54,
                    ),
                  ),
                )),
              ],
            ),
            start: Position(
              value: 33,
              line: 2,
              col: 12,
            ),
          ),
        ],
        span: Span(
          start: Position(
            value: 19,
            line: 1,
            col: 18,
          ),
          end: Position(
            value: 86,
            line: 3,
            col: 8,
          ),
        ),
      )),
      span: Span(
        start: Position(
          value: 9,
          line: 1,
          col: 8,
        ),
        end: Position(
          value: 86,
          line: 3,
          col: 8,
        ),
      ),
    )),
  ],
)