How to use the http-parser-js.methods function in http-parser-js

To help you get started, we’ve selected a few http-parser-js examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jscissr / http-node / _http_common.js View on Github external
'use strict';

const binding = require('http-parser-js');
const methods = binding.methods;
const HTTPParser = binding.HTTPParser;

const FreeList = require('freelist').FreeList;
const incoming = require('./_http_incoming');
const IncomingMessage = incoming.IncomingMessage;
const readStart = incoming.readStart;
const readStop = incoming.readStop;

const debug = require('util').debuglog('http');
exports.debug = debug;

exports.CRLF = '\r\n';
exports.chunkExpression = /chunk/i;
exports.continueExpression = /100-continue/i;
exports.methods = methods;