HTTP request for Luvit
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
tests
.gitignore
Makefile
README.md
license.txt
package.lua

README.md

Curl

A library to ease making HTTP requests and parse responses

Usage

local get = require('curl').get

-- get twitter timeline
get({
  url = 'http://twitter.com/status/user_timeline/creationix.json?count=2&callback=foo',
}, function (err, data)
  p(err, data)
  -- should see pretty-printed table of one or two records here
end)

License

MIT