http-server

command module
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2022 License: MIT Imports: 11 Imported by: 0

README

http-server

A static http-server in golang Accept POST http request and save the request in local-file, works like the firebase.com does.

Usage

$ http-server -h <ip> -p <port> <dir>

default:
ip: 0.0.0.0
port: 9001
dir: .

If POST a request with postman with url http://localhost:9001/folder/test.json, the server will create a folder named folder in current path and create a file named test.json, and store all the post request in it.

While do a GET request, it will run similar to the ftp-server, a simple static folder.

Installation

$ go get github.com/lnmpy/http-server

or

$ git clone git@github.com:lnmpy/http-server.git
$ cd http-server && make install

License

MIT

Author

Elvis Macak (elvismacak@gmail.com)

Thanks

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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