You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

node-mocks-http

Package Overview
Dependencies
Maintainers
4
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-mocks-http - npm Package Versions

123457

1.2.4

Diff
h
howardabrams
published 1.2.4 •
h
howardabrams
published 1.2.3 •
h
howardabrams
published 1.2.2 •
h
howardabrams
published 1.2.1 •
a
alanjames1987
published 1.2.0 •

Changelog

Source

v 1.2.0

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

Changelog

Source

v 1.1.0

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

Changelog

Source

v 1.0.4

  • Adds the MIT license
h
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.

x
xiaoquqi
published 1.0.1 •

Changelog

Source

v 1.0.1

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