示例#1
0
文件: initca.go 项目: hildjj/boulder
// NewHandler returns a new http.Handler that handles request to
// initialize a CA.
func NewHandler() http.Handler {
	return api.HTTPHandler{Handler: api.HandlerFunc(initialCAHandler), Method: "POST"}
}
示例#2
0
文件: scan.go 项目: hildjj/boulder
// NewInfoHandler returns a new http.Handler that handles a request for scan info.
func NewInfoHandler() http.Handler {
	return api.HTTPHandler{Handler: api.HandlerFunc(scanInfoHandler), Method: "GET"}
}