Skip to content

gaptree/gap-front-request

Repository files navigation

Gap Http Request

Install

$ yarn add gap-front-request

Usage

import {Request} from 'gap-front-request';

const request = new Request();

request.addHeader('User-Agent', 'Gap');

const postJson = await request.postJosn('//url.com', {
    key: 'val'
});

const getJson = await request.getJosn('//url.com', {
    key: 'val'
});

const ajax = await request.ajax({
    url: '//url.com',
    method: 'post'
});

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published