(ctx iris.Context)
| 77 | } |
| 78 | |
| 79 | func (err HTTPError) writeHeaders(ctx iris.Context) { |
| 80 | ctx.StatusCode(err.StatusCode) |
| 81 | ctx.Header("X-Content-Type-Options", "nosniff") |
| 82 | } |
| 83 | |
| 84 | // LogFailure will print out the failure to the "logger". |
| 85 | func LogFailure(logger io.Writer, ctx iris.Context, err HTTPError) { |
no test coverage detected