📝 *** CLOSE - I see Context( ) returns this type .... *** - r4[Proposal]: Add RequestCtx in ctx that returns *fasthttp from DefaultCtx
rabarar opened this issue · comments
Feature Proposal Description
Give the users access to the whole fasthttp request for more control (i.e. accessing client certs via ctx) by creating a method similar to func (c *DefaultCtx) Request() *fasthttp.Request
in ctx.go
but instead returns *fasthttp
Alignment with Express API
unknown. don't use javascript
HTTP RFC Standards Compliance
confirmed
API Stability
this feature doesn't affect API Stability
Feature Examples
// RequestCtx return the *fasthttp object
// This allows you to use all fasthttp.RequestCtx methods
// https://godoc.org/github.com/valyala/fasthttp#RequestCtx
func (c *DefaultCtx) Request() *fasthttp.RequestCtx {
return &c.fasthttp
}
Checklist:
- I agree to follow Fiber's Code of Conduct.
- I have searched for existing issues that describe my proposal before opening this one.
- I understand that a proposal that does not meet these guidelines may be closed without explanation.
Thanks for opening your first issue here! 🎉 Be sure to follow the issue template! If you need help or want to chat with us, join us on Discord https://gofiber.io/discord
Yeah - I literally found it moments *AFTER* posting the Feature Request … lol
… On Mar 27, 2024, at 5:12 PM, RW ***@***.***> wrote:
@rabarar <https://github.com/rabarar>
Have you checked the context method?
https://github.com/gofiber/fiber/blob/7ba02c14cf53c5a5f8171a0e4eb125ef4615f7c0/ctx.go#L305
—
Reply to this email directly, view it on GitHub <#2942 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABB2J6DNJQODB4MKPQGCR6LY2MR35AVCNFSM6AAAAABFLUCT22VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRTHE4TQOJTHA>.
You are receiving this because you were mentioned.
Can we close the feature request? Because its there?
I think that’s prudent :)
Thanks!
… On Mar 27, 2024, at 5:22 PM, RW ***@***.***> wrote:
Can we close the feature request? Because its there?
—
Reply to this email directly, view it on GitHub <#2942 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABB2J6AY3D42ZTZHJZCXVBTY2MTAVAVCNFSM6AAAAABFLUCT22VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRUGAYTEOBRHA>.
You are receiving this because you were mentioned.