2.12.0 • Published 5 days ago

conjure-client v2.12.0

Weekly downloads
5,928
License
Apache-2.0
Repository
github
Last release
5 days ago

conjure-typescript-runtime

A light-weight Promise based HTTP client library for the browser.

Overview

conjure-typescript-runtime leverages fetch to provide a simple interface for making HTTP requests. conjure-typescript-runtime was designed to handle the RPC layer for clients generated by Conjure-TypeScript.

Browser compatibility: This library uses fetch so you should ensure that your runtime environment supports ES6 features.

Example

import { DefaultHttpApiBridge, MediaType } from "conjure-client";
import { SomeService } from "some-conjure-api";

const bridge = new DefaultHttpApiBridge({
    baseUrl: "https://some.base.url.com",
    userAgent: {
        productName: "yourProductName",
        productVersion: "1.0.0"
    }
})

const service = new SomeService(bridge);
service.getSomeResult()
    .then(function (response) {
        // handle success
        console.log(response);
    })
    .catch(function (error) {
        // handle error
        console.log(error);
    })
    .then(function () {
        // always executed
    });

Contributing

See the CONTRIBUTING.md document.

License

This project is made available under the Apache 2.0 License.

2.12.0

5 days ago

2.11.0

8 months ago

2.10.0

1 year ago

2.9.0

2 years ago

2.9.0-rc1

2 years ago

2.7.0

3 years ago

2.8.0

3 years ago

2.6.0

3 years ago

2.5.0

3 years ago

2.4.1

5 years ago

2.4.0

5 years ago

2.3.0

5 years ago

2.2.0

5 years ago

2.1.0

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.8.1

5 years ago

1.8.0

5 years ago

1.7.0

5 years ago

1.6.0

6 years ago

1.5.0

6 years ago

1.4.0

6 years ago

1.3.2

6 years ago

1.3.1

6 years ago

1.3.0

6 years ago

1.2.0

7 years ago

1.1.1

7 years ago

1.0.0

7 years ago

0.2.0

7 years ago