# @improbable-eng/grpc-web-node-http-transport

> Node HTTP Transport for use with @improbable-eng/grpc-web

Latest version **0.15.0** (published 2021-11-04) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @improbable-eng/grpc-web-node-http-transport
pnpm add @improbable-eng/grpc-web-node-http-transport
yarn add @improbable-eng/grpc-web-node-http-transport
bun add @improbable-eng/grpc-web-node-http-transport
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.15.0 |
| Published | 2021-11-04 |
| First published | 2019-01-13 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 11.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4472 |
| Author | Improbable |
| Maintainers | jonnyreeves, marcuslongmuir |

## Links

- npm: https://www.npmjs.com/package/@improbable-eng/grpc-web-node-http-transport
- Repository: github.com/improbable-eng/grpc-web
- npm.io page: https://npm.io/package/@improbable-eng/grpc-web-node-http-transport

## Recent versions

- 0.15.0 (latest) — 2021-11-04
- 0.14.1 — 2021-08-23
- 0.14.0 — 2021-02-05
- 0.13.0 — 2020-07-15
- 0.12.0 — 2019-12-13
- 0.11.0 — 2019-08-06
- 0.10.0 — 2019-08-05
- 0.9.6 — 2019-06-03
- 0.9.5 — 2019-05-07
- 0.9.2 — 2019-05-03
- 0.9.1 — 2019-02-26
- 0.0.2 — 2019-01-13

## README

# @improbable-eng/grpc-web-node-http-transport
Node HTTP Transport for use with [@improbable-eng/grpc-web](https://github.com/improbable-eng/grpc-web)

## Usage
When making a gRPC request, specify this transport:

```typescript
import { grpc } from '@improbable-eng/grpc-web';
import { NodeHttpTransport } from '@improbable-eng/grpc-web-node-http-transport';

grpc.invoke(MyService.DoQuery, {
  host: "https://example.com",
  transport: NodeHttpTransport(),
  /* ... */
})
```

Alternatively specify the Default Transport when your server/application bootstraps:
```typescript
import { grpc } from "@improbable-eng/grpc-web";
import { NodeHttpTransport } from "@improbable-eng/grpc-web-node-http-transport";

// Do this first, before you make any grpc requests!
grpc.setDefaultTransport(NodeHttpTransport());
```

---
_Source: https://npm.io/package/@improbable-eng/grpc-web-node-http-transport · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
