3.0.0 • Published 4 years ago

appcd-request v3.0.0

Weekly downloads
443
License
Apache-2.0
Repository
github
Last release
4 years ago

appcd-request

Wrapper around request that applies Appc Daemon configuration when making HTTP requests.

Visit https://github.com/appcelerator/appc-daemon for more information.

Report issues to GitHub issues. Official issue tracker in JIRA.

Installation

npm i appcd-request

Usage

Refer to the request package's documentation for information about the supported options.

import request from 'appcd-request';

// `req` is the actual `request` object returned by `request` package
const req = await request({
	url: 'http://127.0.0.1:1337'
	// additional `request` options
}, (err, res, body) => {
	if (err) {
		console.error(err);
	} else {
		console.log(req.statusCode);
		console.log(body);
	}
});

req.on('data', chunk => {
	console.log(`Received ${chunk.length} bytes`);
});

Environment Variables

APPCD_NETWORK_CA_FILE

Path to a certificate authority file to use to validate the web server's certificate.

APPCD_NETWORK_PROXY

The proxy server URL to use for the request.

APPCD_NETWORK_STRICT_SSL

By default, SSL validation is not strict. Setting this environment variable to anything other than "false" will enable strict SSL validation.

Legal

This project is open source under the Apache Public License v2 and is developed by Axway, Inc and the community. Please read the LICENSE file included in this distribution for more information.

3.0.0

4 years ago

2.2.0

4 years ago

2.1.1

5 years ago

2.1.0

5 years ago

2.0.0

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.1.0-0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

1.0.0-30

6 years ago

1.0.0-29

6 years ago

1.0.0-28

6 years ago

1.0.0-27

6 years ago

1.0.0-26

6 years ago

1.0.0-25

6 years ago

1.0.0-24

6 years ago

1.0.0-23

6 years ago

1.0.0-22

6 years ago

1.0.0-21

6 years ago

1.0.0-20

6 years ago

1.0.0-19

6 years ago

1.0.0-18

6 years ago

1.0.0-17

6 years ago

1.0.0-16

6 years ago

1.0.0-15

6 years ago

1.0.0-14

6 years ago

1.0.0-13

6 years ago

1.0.0-12

6 years ago

1.0.0-11

6 years ago

1.0.0-10

6 years ago

1.0.0-9

6 years ago

1.0.0-8

6 years ago

1.0.0-7

6 years ago

1.0.0-6

6 years ago

1.0.0-5

6 years ago

1.0.0-4

6 years ago

1.0.0-3

6 years ago

1.0.0-2

6 years ago

1.0.0-1

6 years ago

0.1.4

7 years ago

0.1.0

7 years ago