1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-22 11:25:59 +00:00

add sqlx example

This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-08-30 18:24:24 +03:00
parent 77ce225c2f
commit b9f38be9ea
3 changed files with 115 additions and 1 deletions

View File

@@ -621,7 +621,7 @@ New Context Methods:
- `Context.IsGRPC() bool` reports whether the request came from a gRPC client
- `Context.UpsertCookie(*http.Cookie, cookieOptions ...context.CookieOption)` upserts a cookie, fixes [#1485](https://github.com/kataras/iris/issues/1485) too
- `Context.StopWithStatus(int)` stops the handlers chain and writes the status code
- `Context.StopWithText(int, string)` stops the handlers chain, writes thre status code and a plain text message
- `StopWithText(statusCode int, format string, args ...interface{})` stops the handlers chain, writes thre status code and a plain text message
- `Context.StopWithError(int, error)` stops the handlers chain, writes thre status code and the error's message
- `Context.StopWithJSON(int, interface{})` stops the handlers chain, writes the status code and sends a JSON response
- `Context.StopWithProblem(int, iris.Problem)` stops the handlers, writes the status code and sends an `application/problem+json` response