popsicle-transport-xhr

WebJar for popsicle-transport-xhr

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

popsicle-transport-xhr
Last Version

Last Version

1.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

popsicle-transport-xhr
WebJar for popsicle-transport-xhr
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

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

Download popsicle-transport-xhr

How to add to project

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

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.

Popsicle Transport XHR

NPM version NPM downloads Build status Test coverage

Popsicle transport for sending requests over XMLHttpRequest.

Installation

npm install popsicle-transport-xhr --save

Usage

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

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

Transport Options

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

  • type?: XMLHttpRequestResponseType Override response type
  • withCredentials?: boolean Enable withCredentials
  • overrideMimeType?: string Override MIME type

TypeScript

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

License

MIT

org.webjars.npm

ServieJS

Versions

Version
1.0.2