https://github.com/3on/httppp
y another http client wrapper for node.js
https://github.com/3on/httppp
Last synced: about 2 months ago
JSON representation
y another http client wrapper for node.js
- Host: GitHub
- URL: https://github.com/3on/httppp
- Owner: 3on
- Created: 2011-11-25T21:35:22.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2012-01-25T16:57:20.000Z (over 14 years ago)
- Last Synced: 2025-03-04T19:31:49.486Z (over 1 year ago)
- Language: JavaScript
- Size: 161 KB
- Stars: 3
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
HTTPpp
=======
What is it ?
------------
HTTPpp is a wrapper on top of node's http client module. It is meant to be easy to use and to bring cool features such as cookies sessions with stacked queries and JSDOM with parsor HTML5.
Examples
--------
var httppp = require('httppp')
httppp.session({name:'example.com', stacked: true, jdom: true})
httppp.post('/login', {login: 'dude', password: '123456'}, cb)
httppp.get('/', [{}], cb)
// {url: , data: , cb: , session: }
httppp.post({url: '/login', data: {login: 'dude', password: '123456'} cb: cb})
httppp.get({url: '/',data: {}, cb: cb})
httppp.run('name', [cb])