Files
hodu/server-rpx.go

36 lines
586 B
Go
Raw Permalink Normal View History

2025-08-12 16:30:56 +09:00
package hodu
import "net/http"
type server_rpx struct {
S *Server
Id string
}
// ------------------------------------
func (pxy *server_rpx) Identity() string {
return pxy.Id
}
func (pxy *server_rpx) Cors(req *http.Request) bool {
return false
}
func (pxy *server_rpx) Authenticate(req *http.Request) (int, string) {
return http.StatusOK, ""
}
func (pxy *server_rpx) ServeHTTP(w http.ResponseWriter, req *http.Request) (int, error) {
var status_code int
// var err error
status_code = http.StatusOK
//done:
return status_code, nil
//oops:
// return status_code, err
}