File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
2
- # Request - Simplified HTTP client
2
+ # @ cypress/request - Simplified HTTP client
3
3
4
- [ ![ npm package] ( https://nodei.co/npm/request.png?downloads=true&downloadRank=true&stars=true )] ( https://nodei.co/npm/request/ )
4
+ [ ![ npm package] ( https://nodei.co/npm/@cypress/ request.png?downloads=true&downloadRank=true&stars=true )] ( https://nodei.co/npm/@cypress /request/ )
5
5
6
6
[ ![ Build status] ( https://img.shields.io/travis/cypress-io/request/master.svg?style=flat-square )] ( https://travis-ci.org/cypress-io/request )
7
7
[ ![ Coverage] ( https://img.shields.io/codecov/c/github/cypress-io/request.svg?style=flat-square )] ( https://codecov.io/github/cypress-io/request?branch=master )
10
10
[ ![ Known Vulnerabilities] ( https://snyk.io/test/npm/request/badge.svg?style=flat-square )] ( https://snyk.io/test/npm/request )
11
11
[ ![ Gitter] ( https://img.shields.io/badge/gitter-join_chat-blue.svg?style=flat-square )] ( https://gitter.im/cypress-io/request?utm_source=badge )
12
12
13
+ ** This is a fork of [ ` request ` ] ( https://github.com/request/request ) for use in [ Cypress] ( https://github.com/cypress-io/cypress ) .**
13
14
14
15
## Super simple to use
15
16
16
17
Request is designed to be the simplest way possible to make http calls. It supports HTTPS and follows redirects by default.
17
18
18
19
``` js
19
- const request = require (' request' );
20
+ const request = require (' @cypress/ request' );
20
21
request (' http://www.google.com' , function (error , response , body ) {
21
22
console .error (' error:' , error); // Print the error if one occurred
22
23
console .log (' statusCode:' , response && response .statusCode ); // Print the response status code if a response was received
You can’t perform that action at this time.
0 commit comments