Request 请求
| 27 | |
| 28 | // Request 请求 |
| 29 | type Request struct { |
| 30 | ziface.BaseRequest |
| 31 | conn ziface.IConnection // the connection which has been established with the client(已经和客户端建立好的连接) |
| 32 | msg ziface.IMessage // the request data sent by the client(客户端请求的数据) |
| 33 | router ziface.IRouter // the router that handles this request(请求处理的函数) |
| 34 | steps ziface.HandleStep // used to control the execution of router functions(用来控制路由函数执行) |
| 35 | stepLock sync.RWMutex // concurrency lock(并发互斥) |
| 36 | needNext bool // whether to execute the next router function(是否需要执行下一个路由函数) |
| 37 | icResp ziface.IcResp // response data returned by the interceptors (拦截器返回数据) |
| 38 | handlers []ziface.RouterHandler // router function slice(路由函数切片) |
| 39 | index int8 // router function slice index(路由函数切片索引) |
| 40 | keys map[string]interface{} // keys 路由处理时可能会存取的上下文信息 |
| 41 | } |
| 42 | |
| 43 | func (r *Request) GetResponse() ziface.IcResp { |
| 44 | return r.icResp |
nothing calls this directly
no outgoing calls
no test coverage detected