Skip to content
프로젝트

소개

Simple and configurable command-line HTTP server

시스템 및 인프라

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

http-server

Simple and configurable command-line HTTP server

Crates.io Documentation Build Clippy Formatter Tests

Install

You can install HTTP Server via cURL

curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/http-server-rs/http-server/main/install.sh | sh

[!NOTE] Pin version or directory:

curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/http-server-rs/http-server/main/install.sh \
| HTTP_SERVER_VERSION=v1.0.0 HTTP_SERVER_INSTALL_DIR=/usr/local/bin sh

or via cargo

cargo install http-server

Development

[!NOTE] The source code in main belongs to the code for the version 1.0.0.

Release Build

Build release binaries with:

just release

Optionally you can build for other targets by passing the target triple

just release <target-triple>

For example:

# Install aarch64-unknown-linux-gnu target
rustup target install aarch64-unknown-linux-gnu
# Build for aarch64-unknown-linux-gnu target
just release aarch64-unknown-linux-gnu

Then use the following alias for convenience

alias htps = './target/release/http-server'

Release

In order to create a release you must push a Git tag as follows

git tag -a <version> -m <message>

Example

git tag -a v0.1.0 -m "First release"

Tags must follow semver conventions. Tags must be prefixed with a lowercase v letter.

Then push tags as follows:

git push origin main --follow-tags

Contributing

Every contribution to this project is welcome. Feel free to open a pull request or an issue. Just by using this project you're helping it grow. Thank you!

License

Distributed under the terms of both the MIT license and the Apache License (Version 2.0)

관련 프로젝트 살펴보기

불러오는 중…