From 303f9d3d6973119023e298e2cf9d4b948c6e2881 Mon Sep 17 00:00:00 2001 From: "Gerasimos (Makis) Maropoulos" Date: Thu, 31 Oct 2019 06:37:35 +0200 Subject: [PATCH] add a note on http-errors example about #1389 Former-commit-id: 73485e195bc246e8b81a1be3156b361e92c054c7 --- _examples/routing/http-errors/main.go | 5 ++++- doc.go | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) 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