Skip to content

Releases: char0n/http-request-in-editor

v0.4.0

22 Feb 17:25
674c19a

Choose a tag to compare

  • change license to Apache 2.0
  • fix parsing of request-target
  • fix various parsing ambiguities
  • add initial runtime support

v0.3.0

10 Jan 09:48

Choose a tag to compare

  • implemented the whole HTTP REQUEST IN EDITOR specification (except env variables)
  • eliminate all grammar ambiguities

v0.2.0

08 Nov 20:39

Choose a tag to compare

  • Implemented proper CST representation returned by the parser

v0.1.0

23 Mar 19:54

Choose a tag to compare

First release containing full implementation of the HTTP Request in Editor Spec.

const { parse } = require('http-request-in-editor');


const http = `
POST https://httpbin.org/post

###
`;

const ast = parse(http);

/**
 *
 * [
 *  [
 *    {
 *        method: 'POST',
 *        requestTarget: [Object],
 *        httpVersion: '1.1',
 *        headers: [],
 *        body: [Array],
 *        responseHandler: null,
 *        responseRef: null
 *      }
 *    ] 
 *  ]
 */