Documentation ¶
Index ¶
Constants ¶
View Source
const CONTENT_TYPE_FILE string = "application/octet-stream"
View Source
const CONTENT_TYPE_JSON string = "application/json"
View Source
const CONTENT_TYPE_TEXT string = "text/plain"
View Source
const CTX_NAME_KEY string = "ctx_name"
View Source
const DEFAULT_PORT int = 8883
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SimpleServer ¶
Very simple http server which makes your file directory available via http.
Default port is 8883.
func (*SimpleServer) Start ¶
func (s *SimpleServer) Start() (string, error)
Starts the http server and return its address.
Click to show internal directories.
Click to hide internal directories.