MCPcopy
hub / github.com/aceld/zinx / Call

Method Call

znet/request.go:192–212  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

190}
191
192func (r *Request) Call() {
193
194 if r.router == nil {
195 return
196 }
197
198 for r.steps < HANDLE_OVER {
199 switch r.steps {
200 case PRE_HANDLE:
201 r.router.PreHandle(r)
202 case HANDLE:
203 r.router.Handle(r)
204 case POST_HANDLE:
205 r.router.PostHandle(r)
206 }
207
208 r.next()
209 }
210
211 r.steps = PRE_HANDLE
212}
213
214func (r *Request) Abort() {
215 if zconf.GlobalObject.RouterSlicesMode {

Callers

nothing calls this directly

Calls 4

nextMethod · 0.95
PreHandleMethod · 0.65
HandleMethod · 0.65
PostHandleMethod · 0.65

Tested by

no test coverage detected