Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ash-framework/http-context

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ash-framework/http-context

Wrapper for express request and response with request wide state storage and retrieval

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

@ash-framework/http-context

The Media Suite

Travis CI Build Status NPM version NPM downloads Dependency Status Dev Dependency Status

Wrapper for express request and response with request wide state storage and retrieval

Install

NPM

  • Install: npm install --save @ash-framework/http-context
  • Module: require('@ash-framework/http-context')

Usage

Creating an instance of HttpContext

const context = new HttpContext(request, response)

Accessing request and response on context

context.request
context.response

Using context to store state for the lifetime of the request

context.set('token', 'AGH123AS34SDF')

Retrieving stored state anywhere request is available

const anotherContext = new HttpContext(request, response)
anotherContext.get('token) // 'AGH123AS34SDF'

History

Discover the release history by heading on over to the releases page.

Backers

Maintainers

These amazing people are maintaining this project:

  • Richard Walker digitalsadhu@gmail.com

Sponsors

These amazing people have contributed finances to this project:

Become a sponsor!

Contributors

These amazing people have contributed code to this project:

License

Unless stated otherwise all works are:

and licensed under:

Keywords

FAQs

Package last updated on 18 Oct 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc