diff --git a/_examples/routing/http-errors/main.go b/_examples/routing/http-errors/main.go index fe564d3e..2efe9f0d 100644 --- a/_examples/routing/http-errors/main.go +++ b/_examples/routing/http-errors/main.go @@ -27,6 +27,7 @@ func main() { ctx.Writef("Hello %s", ctx.Params().Get("firstname")) }) + // Read more at: https://github.com/kataras/iris/issues/1335 app.Get("/product-problem", problemExample) app.Get("/product-error", func(ctx iris.Context) { @@ -89,10 +90,12 @@ func problemExample(ctx iris.Context) { }, // OR // Render as XML: + // // RenderXML: true, // XML: iris.XML{Indent: " "}, + // and ctx.StatusCode(200) to see the result on browser as a user. // - // Sets the "Retry-After" response header. + // The below `RetryAfter` field sets the "Retry-After" response header. // // Can accept: // time.Time for HTTP-Date, diff --git a/doc.go b/doc.go index 381407fd..397e29a1 100644 --- a/doc.go +++ b/doc.go @@ -38,7 +38,7 @@ Source code and other details for the project are available at GitHub: Current Version -12.0.0 +12.0.1 Installation