Skip to content
This repository has been archived by the owner on Jul 9, 2018. It is now read-only.
/ util Public archive

Catch-all library for utilities of the travetto framework.

Notifications You must be signed in to change notification settings

travetto/util

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

travetto: Util

Common utilities for executing HTTP requests and any other future catch alls.

HTTP Requests

The http request functionality exists to allow for simple usage of the node http and https modules. This functionality exists, in lieu of alternatives, as a means to provide the smallest footprint possible. The logic itself is simple:

request(opts: http.RequestOptions & { url: string }, data?: any): Promise<string>;
request(opts: http.RequestOptions & { url: string, pipeTo: any }, data?: any): Promise<http.IncomingMessage>;
requestJSON<T, U>(opts: http.RequestOptions & { url: string }, data?: U): Promise<T>;

About

Catch-all library for utilities of the travetto framework.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published