Skip to content

A multithreaded HTTP server wrapping Windows Http Server API 2.0

License

Notifications You must be signed in to change notification settings

fxgallego/DolphinHttpServer

Repository files navigation

Dolphin Http Server

Build status

This is a multithreaded http server that wraps the Windows HTTP Server API. A low level wrapper is provided by Dolphin 7. It includes thread pool to avoid running out of green processes when the server is being accesed by multiple clients. It's a good replacement for Swazoo and much more stable too.

Automated Installation

  • Download and install GitHub Package Manager
  • Evaluate: GitHubPackageManager install: 'fxgallego/DolphinHttpServer/DolphinHttpServer/Dolphin Http Server Demo'

Simplest example:

server := HttpServer new.
server
	addListener: 'DolphinSmaltalkHTTPServer'
	at: 'http://localhost:8080/'
	handler: [:request :response | response statusCode: 200; content: 'Hello'].
server start.

Point your browser to: http://localhost:8080

DEMO

A demo is provided showing how to impement some minimal form and file upload handling.

  1. Load the demo package
  2. Evaluate HttpServerDemo start and navigate to http://localhost:8080

Use 7.0 branch with Dolphin 7.0 branch and master for Dolphin 7.1

License

The MIT license

About

A multithreaded HTTP server wrapping Windows Http Server API 2.0

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages