|
@@ -47,6 +47,7 @@ func responseError(w http.ResponseWriter, err rest.IErrorArgs, code int) {
|
|
|
|
|
|
// handle
|
|
// handle
|
|
func (s *Rest) handle(w http.ResponseWriter, r *http.Request) {
|
|
func (s *Rest) handle(w http.ResponseWriter, r *http.Request) {
|
|
|
|
+ log.Println("HANDLE START...")
|
|
// установка заголовков ответа
|
|
// установка заголовков ответа
|
|
for k, v := range s.responseHeaders {
|
|
for k, v := range s.responseHeaders {
|
|
w.Header().Set(k, v)
|
|
w.Header().Set(k, v)
|
|
@@ -153,7 +154,8 @@ func (s *Rest) handle(w http.ResponseWriter, r *http.Request) {
|
|
data.LogPretty()
|
|
data.LogPretty()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ log.Println("HANDLE MIDDLE...")
|
|
|
|
+ defer log.Println("HANDLE FINISH...")
|
|
// get command
|
|
// get command
|
|
|
|
|
|
//command, check := s.commands.GetCommand(r.URL.Path)
|
|
//command, check := s.commands.GetCommand(r.URL.Path)
|