added server-rpx.go
This commit is contained in:
35
server-rpx.go
Normal file
35
server-rpx.go
Normal file
@ -0,0 +1,35 @@
|
||||
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
|
||||
}
|
||||
|
Reference in New Issue
Block a user