Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including http-pegjs with all npm packages installed. Try it out:

var httpPegjs = require("http-pegjs")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

http-pegjs v0.0.5

API PEGjs (HTTP, methods, headers, media-type, etc)

API PEGjs Build Status

A collection of PEG parsers for HTTP, API and related syntaxes

Parsers

apiPEG = require 'api-pegjs'

apiPEG.module.parser input

where module.parser can be

  • http
    • header_field
    • message
    • method
    • request_line
    • request_target
    • status_code
    • status_line
    • version
    • headers
      • Accept
      • Accept_Charset
      • Accept_Encoding
      • Accept_Language
      • Allow
      • Connection
      • Content_Encoding
      • Content_Language
      • Content_Location
      • Content_Type
      • Date
      • Expect
      • From
      • Host
      • Location
      • Max_Forwards
      • Referer
      • Retry_After
      • Server
      • TE
      • Tranfer_Encoding
      • Upgrade
      • User_Agent
      • Vary
      • Via
  • uri
  • media_type
  • charset
  • language

License

Apache 2.0

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free