Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

mellowdistrict/lua-http

Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

133 Commits
133 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTTP library for Lua.

Features

  • Optionally asynchronous (including DNS lookups and SSL)
  • Compatible with Lua 5.1, 5.2, 5.3 and LuaJIT

Status

This project is a work in progress and not ready for production use.

Build Status Coverage Status

Todo

  • HTTP 1.1
  • HTTP 2
  • Connection pooling
  • socket.http compatibility layer
  • Prosody net.http compatibility layer
  • Handle redirects
  • Be able to use a HTTP proxy
  • Compression (e.g. gzip)

Installation

Dependencies

If using lua < 5.3 you will need

If using lua 5.1 you will need

For running tests

Development

Getting started

  • Clone the repo:

    $ git clone https://github.com/daurnimator/lua-http.git
    $ cd lua-http
    
  • Install dependencies

    $ luarocks install --only-deps http-scm-0.rockspec
    
  • Lint the code (check for common programming errors)

    $ luacheck .
    
  • Run tests and view coverage report (install tools first)

    $ busted -c
    $ luacov && less luacov.report.out
    
  • Install your local copy:

    $ luarocks make http-scm-0.rockspec
    

About

HTTP Client for Lua

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Lua 96.6%
  • Shell 3.4%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.