首页 > 其他分享 >gin 路径返回显示

gin 路径返回显示

时间:2023-03-12 19:23:23浏览次数:17  
标签:返回 info URL Request 路径 ctx gin hello

假如请的URL是 /info/hello?key=name "url": ctx.Request.URL.    显示一个对象 "uri": ctx.Request.RequestURI,  显示是的全路径    /info/hello?key=name "path": ctx.Request.URL.Path, 显示的是没有query 的路径 /info/hello "route": ctx.FullPath(),   显示的是路由路径  /info/:pathname

标签:返回,info,URL,Request,路径,ctx,gin,hello
From: https://www.cnblogs.com/firebirdweb/p/17208808.html

相关文章