Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultMethod string = "GET" DefaultStatusCode int = 200 )
Functions ¶
func LaunchService ¶
func LaunchService(defaultServer *server.Client, port string, globalVars map[string]string, config ServerConfig)
LaunchService
Types ¶
type HTTPHandler ¶
type HTTPHandler struct { Method string `yaml:"method,omitempty"` Body string `yaml:"body,omitempty"` BodyFile string `yaml:"body_file,omitempty"` Code int `yaml:"code,omitempty"` Headers map[string]string `yaml:"headers,omitempty"` Handler *Handler `yaml:"handler,omitempty"` // Should be removed if not used }
HTTPHandler
Click to show internal directories.
Click to hide internal directories.