Reference implementation of HTTP Request in Editor Specification https://github.com/JetBrains/http-request-in-editor-spec
APACHE-2.0 License
Published by char0n almost 4 years ago
Published by char0n almost 4 years ago
Published by char0n over 4 years ago
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
* }
* ]
* ]
*/