1.1.3 • Published 12 months ago

@fruitsjs/http v1.1.3

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
12 months ago

@fruitsjs/http

Generic HTTP client that is used as a network provider for @fruitsjs/core.

Installation

@fruitsjs/http can be used with NodeJS or Web.

Using with NodeJS and/or modern web frameworks

Install using npm:

npm install @fruitsjs/http

or using yarn:

yarn add @fruitsjs/http

Example

import {HttpImpl} from '@fruitsjs/http'

async function getTodos() {
    try{
        const client = new HttpClientFactory.createHttpClient('https://jsonplaceholder.typicode.com/');
        const result = await client.get('/todos/1')
        console.log(result)
    }
    catch(httpError){
        console.error(httpError.message)
    }
}
1.1.3

12 months ago

1.1.2

1 year ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0-rc.4

3 years ago

1.0.0-rc.3

3 years ago