Gin How to rewrite the response body and empty the original content in the middleware?

I want to rewrite response body in middleware,Only want to output replace data,Refer to How to rewrite response body in ...

Gin The key of the response header is changed to lowercase, how to keep the response same as set

golang version: go1.18.3 linux/amd64gin version: v1.8.1nodejs version: 16.15.1vue version: 2.6.12axios version: 0.24.0I ...

Gin A bug about path params

DescriptionIf I define the route like *action, there will be an additional character / in the parameters I get.How to re...

Gin why no regex route schedule

The cost of route scheduling is so little compared to controller. Is it worth abandoning regular expression routing rule...

Gin File server *and* api on same router

DescriptionI want to be able to have a fileserver providing my JS files & my api on the same routerHow to reproducep...

Gin Why execute router.Use(xxx) first and then router.NoRoute(xxx)?

DescriptionWhy execute router.Use(xxx) first and then router.NoRoute(xxx)?In addition, if it is necessary to run router....

Gin panic: handlers are already registered for path

DescriptionSimilar to #196, I am experiencing the error panic: handlers are already registered for path '/'.The big diff...

Gin BasicAuth() asking for authorization on every route starting from subroute

I have the following code:authorized.GET("/api", func(ctx *gin.Context) { ctx.JSON(200, gin.H{"message...

Gin gin websocket hijacked connection panic

if w.conn.hijacked() { if lenData > 0 { caller := relevantCaller() w.conn.server.logf("h...

Gin when I use timeout_middleware and reverse_proxy, then output excel file, it failed

With issues:Use the search tool before opening a new issue.Please provide source code and commit sha if you found a bug....

Gin Remove <html> <head> <body>

Hello.I'm trying to create HTML api it means server responds HTML tag.Now, I tested simple case.This is my code.I intend...

Gin http: proxy error: dial tcp [::1]:3001: connect: connection refused

DescriptionI just setup the gin and test very basic GET request. However, server always throwing an error http: proxy er...

Gin How to Remove <html> <head> <body>

It's not issue but I can't solve it because of my little knowledge so please help me.I'm trying to create API for provid...

Gin l print headers

With issues:Use the search tool before opening a new issue.Please provide source code and commit sha if you found a bug....

Gin fatal error: concurrent map writes

DescriptionVery randomly, I got my Gin application fatal errorHow to reproducefunc (api ChaptersApi) Report(ctx *gin.Con...

Gin defaultLogger does not print BodySize

DescriptionThe defaultLoggerFormatter does not print the BodySize, it would be nice if that could be added by default.Ho...

Gin Recovery with custom logger

Let the developer use their own logger to Recovery middlewareBeforefunc CustomRecoveryWithWriter(out io.Writer, handle R...

Gin feature request: support SCRIPT_NAME in wsgi spec

DescriptionNormally we access the WebApp like http://localhost:7420/ but we may want it to look something like http://ex...

Gin How to implement timeout middleware in gin?

I just implemented a timeout middleware in gin, and it's working, but, in log i get some warnings. Any idea guys of what...

Gin RedirectTrailingSlash not working if there are more than one child route

DescriptionRedirectTrailingSlash not working if there are more than two child route.How to reproducepackage mainimport (...
上一页 下一页
.