Fill your option here
Handling response
ClientRequest
IncomingMessage Response
Resolve function
Reject function
Alias 'get' function, but with 'DELETE' method.
A valid URL
Request Options
Example:
TinyHttpClient.delete("https://somesite.com/users/40");
Here, you could receive response with GET method.
A valid URL want to request
Request Options
Example:
TinyHttpClient.get("https://hastebin.com", { ... });
Handling response
ClientRequest
IncomingMessage Response
Resolve function
Reject function
Alias 'get' function, but with 'OPTIONS' method.
A valid URL
Request options
Example:
TinyHttpClient.options("https://somesite.com", { ... });
Well, you could receive response with 'POST' method.
A valid URL
Body or content want to send.
Request Options
Do you want send JSON? Sure, you could.
TinyHttpClient.post("https://somesite.com", { hello: "world" });
Or, just a text?
TinyHttpClient.post("https://hastebin.com/documents", "hello world");
Alias 'post' function, but with 'PUT' method.
A valid URL
Body or content want to send.
Request options
Example:
TinyHttpClient.put("https://somesite.com/users/20", { ... });
Or,
TinyHttpClient.put("https://somesite.com/users/20/note", "hello world");
Generated using TypeDoc
Tiny HTTP Client Instance.
Here you can create your tiny http instance. Example: