Skip to content

takovoy/web-http-promise-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

web-http-promise-client

Frontend library - HTTP promise client

There are few static rest methods (get, post, put)

Example:

import { HTTPClient } from "web-http-promise-client/out/index";

// payload, query, noCache, contentType - are not required arguments
HTTPClient.get("yourAwesomeURL", payload, query, noCache, contentType)
    .then(response => console.log(response))
    .catch(xhrObject => console.log(xhrObject));

// post and put methods have the same signature
HTTPClient.post("yourAwesomeURL", payload, query, noCache, contentType);
HTTPClient.put("yourAwesomeURL", payload, query, noCache, contentType);

About

Frontend library - HTTP promise client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published