http-https

WebJar for http-https

License

License

ISC
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

http-https
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

http-https
WebJar for http-https
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/isaacs/http-https

Download http-https

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/http-https/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>http-https</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/http-https/
implementation 'org.webjars.npm:http-https:1.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/http-https/
implementation ("org.webjars.npm:http-https:1.0.0")
'org.webjars.npm:http-https:jar:1.0.0'
<dependency org="org.webjars.npm" name="http-https" rev="1.0.0">
  <artifact name="http-https" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='http-https', version='1.0.0')
)
libraryDependencies += "org.webjars.npm" % "http-https" % "1.0.0"
[org.webjars.npm/http-https "1.0.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

http-https

A wrapper that chooses http or https for requests

USAGE

var hh = require('http-https')

var req = hh.request('http://example.com/bar')
var secureReq = hh.request('https://secure.example.com/foo')

// or with a parsed object...
var opt = url.parse(someUrlMaybeHttpMaybeHttps)
opt.headers = {
  'user-agent': 'flergy mc flerg'
}
opt.method = 'HEAD'
var req = hh.request(opt, function (res) {
  console.log('got response!', res.statusCode, res.headers)
})
req.end()

Versions

Version
1.0.0