String returns the string representation of this request. It returns the Context's ID given by a `SetID`call, followed by the client's IP and the method:uri.
()
| 6649 | // It returns the Context's ID given by a `SetID`call, |
| 6650 | // followed by the client's IP and the method:uri. |
| 6651 | func (ctx *Context) String() string { |
| 6652 | id := ctx.GetID() |
| 6653 | if id != nil { |
| 6654 | if stringer, ok := id.(fmt.Stringer); ok { |
| 6655 | id = stringer.String() |
| 6656 | } |
| 6657 | } |
| 6658 | |
| 6659 | return fmt.Sprintf("[%v] %s ▶ %s:%s", id, ctx.RemoteAddr(), ctx.Method(), ctx.Request().RequestURI) |
| 6660 | } |
nothing calls this directly
no test coverage detected