Skip to content

mark-likhtar/procket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Procket it's a promise based HTTP client for the browser and node.js for HTTP requests.


Installation

Use the package manager npm to install this package.

npm install procket

Usage

import procket from "procket";

const procket = new Procket();

procket.get("url");
procket.get("url", {
  header: { "Content-Type": "application/json" },
  timeout: 20 * 1000
}); //with headers and timeout

procket.post("url", { name: "John" });
procket.post(
  "url",
  { name: "John" },
  {
    header: { "Content-Type": "application/json" },
    timeout: 20 * 1000
  }
); //with headers and timeout

procket.put("url", { name: "John" });
procket.put(
  "url",
  { name: "John" },
  {
    header: { "Content-Type": "application/json" },
    timeout: 20 * 1000
  }
); //with headers and timeout

procket.delete("url", { name: "John" });
procket.delete(
  "url",
  { name: "John" },
  {
    header: { "Content-Type": "application/json" },
    timeout: 20 * 1000
  }
); //with headers and timeout

License

License

Licensed under The MIT License (MIT) For the full copyright and license information, please view the LICENSE.txt file.

MIT license

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published