golang-vhost-dev

Go library to implement virtual hosting for different protocols
  https://github.com/inconshreveable/go-vhost
  0
  no reviews



This is a simple library that lets you implement virtual hosting functionality for different protocols (http and tls so far). go-vhost has a high-level and a low-level interface. the high-level interface lets you wrap existing net.listeners with "muxer" objects. the lower-level interface returns an object implementing net.conn which works as if no bytes had been consumed.