httpcgi

command module
v0.0.18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 29 Imported by: 0

README

httpcgi is...

  • HTTP Server
  • supports legacy CGI program
  • can run WASI binary with CGI interface
  • only CGI
    • without static file serving
    • without reverse proxy
    • ...

install

  • go install github.com/wtnb75/httpcgi@latest
  • supports WASI
    • with wasmer runtime: go install -tags wasmer github.com/wtnb75/httpcgi@latest
    • with wasmtime runtime: go install -tags wasmtime github.com/wtnb75/httpcgi@latest
    • with wazero runtime: go install -tags wazero github.com/wtnb75/httpcgi@latest
  • supports Docker
    • go install -tags docker github.com/wtnb75/httpcgi@latest

run

  • httpcgi -l :8080

options

Usage:
  httpcgi [OPTIONS]

Application Options:
  -v, --verbose                                      log verbose
  -q, --quiet                                        log quiet
  -l, --listen=[host]:port
      --protocol=tcp/unix
  -p, --prefix=url-prefix
  -b, --base-dir=dirname
  -s, --suffix=.ext
      --json-log
      --runner=name
  -V, --version
      --opentelemetry=[stdout|zipkin|otlp|otlp-http]

Help Options:
  -h, --help                                         Show this help message

docker

  • docker run ghcr.io/wtnb75/httpcgi [options]...

docker compose

Documentation

Overview

httpcgi: serve legacy CGI

Directories

Path Synopsis
Package mock_client is a generated GoMock package.
Package mock_client is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL