Skip to content

aiwebb/requestify.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

requestify.io

NOTE: requestify.io is currently in testing and not open to public access.

The HTML spec doesn't allow any advanced options in anchor tags, like this:

<a href="http://example.com?data" accept="application/json">

requestify.io provides a workaround with a simple proxy for the request library.

Usage

Hit requestify.io with a JSON encoded options query parameter to pass to the request() function. The result is streamed back - that's it.

Omitting the options query parameter will render this document instead.

Example

$('<a>').attr('href', 'http://requestify.io?options=' + encodeURIComponent(
	JSON.stringify({
		url: 'http://i.imgur.com/8oGNPR6.png'
	})
))

The above code produces this link: http://requestify.io/?options=%7B"url"%3A"http%3A%2F%2Fi.imgur.com%2F8oGNPR6.png"%7D

Disclaimer

I own requestify.io - I built it to solve a specific problem. I log the words "request", "readme", or "error" for each request so I have some idea of usage, but I'm not logging any of the actual request URLs or options and never will. You are obviously welcome to fork this project and host it yourself if you're more comfortable with that. If you make any improvements, pull requests are always welcome.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published