Skip to content

Dr-Noob/swebs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

swebs

Simple web server -- Simple HTTP server on your local machine.

Usage

./swebs [--port=PORT] [--dir=DIR] [--log=DIR] [--help]

Option Description Type
--port Port in which swebs will be listening for incomming connections Optional(Default:80)
--dir Directory that will be used as root directory to swebs to serve files. Optional(Default: .)
--log Directory that will be used to save swebs log file. Optional(Default: .)
--help Prints help and exit Optional

Please note that for certain ports(e.g, 80) you will need root permissions

Features

  • GET method: swebs just supports HTTP GET method

  • Multithreading: swebs will launch a new thread to process each request separately, using pthreads

  • Logging: swebs will write to a log file(located in the directory specified with --log or at '.' if not directory was specified)

About

Simple Web Server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published