Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SimpleServer ¶
type SimpleServer struct {
// contains filtered or unexported fields
}
SimpleServer is SimpleServerInterface implementation
func (*SimpleServer) Serve ¶
func (s *SimpleServer) Serve(port int, content string)
Serve initiates server, block for input on stdin
func (*SimpleServer) ServeHTTP ¶
func (s *SimpleServer) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP handler function
type SimpleServerInterface ¶
SimpleServerInterface abstraction for simplified web server
Click to show internal directories.
Click to hide internal directories.