Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

HTTP Library for Lua. Supports HTTP(S) 1.0, 1.1 and 2.0; client and server.

License

NotificationsYou must be signed in to change notification settings

daurnimator/lua-http

Repository files navigation

Features

  • Optionally asynchronous (including DNS lookups and TLS)
  • Supports HTTP(S) version 1.0, 1.1 and 2
  • Functionality for both client and server
  • Cookie Management
  • Websockets
  • Compatible with Lua 5.1, 5.2, 5.3, 5.4 andLuaJIT

Documentation

Can be found athttps://daurnimator.github.io/lua-http/

Status

Build StatusCoverage StatusCII Best Practices

Installation

It's recommended to install lua-http by usingluarocks.This will automatically install run-time lua dependencies for you.

$ luarocks install http

Dependencies

To use gzip compression you needone of:

To check cookies against a public suffix list:

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

Generating documentation

Documentation is written in markdown and intended to be consumed bypandoc. See thedoc/ directory for more information.

About

HTTP Library for Lua. Supports HTTP(S) 1.0, 1.1 and 2.0; client and server.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Contributors9

Languages


[8]ページ先頭

©2009-2025 Movatter.jp