Skip to content

v0.1.0

Choose a tag to compare

@char0n char0n released this 23 Mar 19:54
· 500 commits to master since this release

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
 *      }
 *    ] 
 *  ]
 */