New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

node-mocks-http

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-mocks-http - npm Package Versions

howardabrams
published 1.2.1 •
alanjames1987
published 1.2.0 •

Changelog

Source

v 1.2.0

  • Adds a .header and .get method to the request.
alanjames1987
published 1.1.0 •

Changelog

Source

v 1.1.0

  • Adds a .header, .set, and .get method to the response.
howardabrams
published 1.0.4 •

Changelog

Source

v 1.0.4

  • Adds the MIT license
howardabrams
published 1.0.3 •

Changelog

Source

v 1.0.3

  • Merged changes by invernizzie: to address #11

  • Merged changes by ericchaves:

    I extended your library a little but so it could also handle some structured responses. By doing so res.send now evaluate the data passed and search for either a statusCode or httpCode to be used, and also for a body to send as _data.

    It still working as expected (at least tests passed) for regular HTTP responses.

    Although I did it with node-restify in mind, it should work well for all other libs.

xiaoquqi
published 1.0.1 •

Changelog

Source

v 1.0.1

  • Adds support for response redirect and render
howardabrams
published 1.0.0 •
howardabrams
published 0.0.9 •

Changelog

Source

v 0.0.9

  • Adds support for response cookies
xiaoquqi
published 0.0.8 •

Changelog

Source

v 0.0.8

  • Adds support for request headers
  • Fix wrong function name of set cookies
xiaoquqi
published 0.0.7 •

Changelog

Source

v 0.0.7

  • Adds support for request cookies