popsicle-transport-http

WebJar for popsicle-transport-http

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

popsicle-transport-http
Last Version

Last Version

1.0.6
Release Date

Release Date

Type

Type

jar
Description

Description

popsicle-transport-http
WebJar for popsicle-transport-http
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/serviejs/popsicle-transport-http

Download popsicle-transport-http

How to add to project

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

Dependencies

compile (2)

Group / Artifact Type Version
org.webjars.npm : make-error-cause jar [2.2.0,3)
org.webjars.npm : pump jar [3.0.0,4)

Project Modules

There are no modules declared in this project.

Popsicle Transport HTTP

NPM version NPM downloads Build status Test coverage

Popsicle transport for sending requests over HTTP1 and HTTP2.

Installation

npm install popsicle-transport-http --save

Usage

import { transport } from "popsicle-transport-http";

const req = new Request("/");
const res = await transport()(req, done);

Transport Options

The transport function sends the Servie Request to a remote server.

  • keepAlive?: number Duration to keep connection alive for re-use (default: 5000)
  • servername?: string Override remote server name for TLS
  • rejectUnauthorized?: boolean Rejects unauthorized TLS connections
  • negotiateHttpVersion?: NegotiateHttpVersion Configure HTTP version negotiation (default: HTTP2_FOR_HTTPS)
  • lookup?: DnsLookup Enable custom DNS resolution (default: cacheable-lookup)
  • TLS options:
    • ca?: string | Buffer | Array<string | Buffer> Set TLS CA
    • cert?: string | Buffer Set TLS certificate
    • key?: string | Buffer Set TLS key
    • secureContext?: SecureContext Set TLS secure context
    • secureProtocol?: string Set TLS secure protocol
    • secureOptions?: number Set TLS secure options
  • Custom connection managers (default: Infinity active sockets):
    • tlsSockets?: ConnectionManager<TLSSocket>
    • netSockets?: ConnectionManager<Socket>
    • http2Sessions?: ConnectionManager<ClientHttp2Session>
  • Custom create connections (all methods support async promises):
    • createHttp2Connection?: (authority, socket) => ClientHttp2Session
    • createNetConnection?: (options) => Socket
    • createTlsConnection?: (options) => TLSSocket

TypeScript

This project is written using TypeScript and publishes the definitions directly to NPM.

License

MIT

org.webjars.npm

ServieJS

Versions

Version
1.0.6