daurnimator/lua-http
소개
Lua용 HTTP 라이브러리입니다. HTTP(S) 1.0, 1.1, 2.0을 지원하며 클라이언트와 서버 모두에서 사용할 수 있습니다.
개발 도구What you can do
- 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
측정된 스타 증가
- in 24h
- +1
- in 7 days
- +2
- in 15 days
- +2
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalHTTP library for Lua.
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 and LuaJIT
Documentation
Can be found at https://daurnimator.github.io/lua-http/
Status
Installation
It's recommended to install lua-http by using luarocks. This will automatically install run-time lua dependencies for you.
$ luarocks install http
Dependencies
- cqueues >= 20161214 (Note: cqueues currently doesn't support Microsoft Windows operating systems)
- luaossl >= 20161208
- basexx >= 0.2.0
- lpeg
- lpeg_patterns >= 0.5
- binaryheap >= 0.3
- fifo
To use gzip compression you need one of:
To check cookies against a public suffix list:
If using lua < 5.3 you will need
- compat-5.3 >= 0.3
If using lua 5.1 you will need
- luabitop (comes with LuaJIT) or a backported bit32
For running tests
Development
Getting started
Clone the repo:
$ git clone https://github.com/daurnimator/lua-http.git $ cd lua-httpInstall dependencies
$ luarocks install --only-deps http-scm-0.rockspecLint the code (check for common programming errors)
$ luacheck .Run tests and view coverage report (install tools first)
$ busted -c $ luacov && less luacov.report.outInstall your local copy:
$ luarocks make http-scm-0.rockspec
Generating documentation
Documentation is written in markdown and intended to be consumed by pandoc. See the doc/ directory for more information.
관련 프로젝트 살펴보기
불러오는 중…