0.1.2 • Published 1 year ago

@gallofeliz/http-request v0.1.2

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

Http Request

npm.io

Note: This module is part of @gallofeliz/js-libs that is a personal project. It is not developed nor tested for applications that need high security or scalability.

Got more hight level.

deepEqual(
    await httpRequest({
        logger,
        url: 'https://jsonplaceholder.typicode.com/todos/1',
        responseType: 'auto',
        responseTransformation: '{"name": title}',
        resultSchema: {
            type: 'object',
            properties: {
                name: {type: 'string'}
            },
            required: ['name']
        },
        abortSignal
    }),
    { name: 'delectus aut autem' }
)