Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

conjure-client

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

conjure-client

An HTTP bridge library for use in front end applications and generated conjure code

  • 1.3.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
46K
decreased by-6.46%
Maintainers
1
Weekly downloads
 
Created
Source

conjure-typescript-client

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

Overview

conjure-typescript-client leverages fetch to provide a simple interface for making HTTP requests. conjure-typescript-client 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.

FAQs

Package last updated on 24 Sep 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc