Documentation ¶
Index ¶
- type HttpsdResponseWriter
- type Server
- func (server *Server) Configure(conf *conf.Data, handler func(http.ResponseWriter, *http.Request)) error
- func (server *Server) ConfigureFromFile(confPath string, handler func(http.ResponseWriter, *http.Request)) error
- func (server *Server) Log(format string, args ...interface{})
- func (server *Server) LogAccess(rhost, user, method, path, proto, agent, referer string, status int, ...)
- func (server *Server) Serve() error
- func (server *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpsdResponseWriter ¶
type HttpsdResponseWriter struct { http.ResponseWriter Size int64 Started time.Time Status int Elapsed int64 }
func NewHttpsdResponseWriter ¶
func NewHttpsdResponseWriter(rw http.ResponseWriter) *HttpsdResponseWriter
func (*HttpsdResponseWriter) WriteHeader ¶
func (w *HttpsdResponseWriter) WriteHeader(status int)
type Server ¶
type Server struct { http.Server Conf *conf.Data Hostnames []string Certs string Mux *http.ServeMux HandlerFunc func(http.ResponseWriter, *http.Request) RedirectServer *http.Server // contains filtered or unexported fields }
func (*Server) ConfigureFromFile ¶
Click to show internal directories.
Click to hide internal directories.