Documentation
¶
Overview ¶
Package fiberadapter provides Fiber middleware for MPP-protected routes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChargeMiddleware ¶
ChargeMiddleware protects a Fiber route with the server charge flow.
func Credential ¶
func Credential(c *fiberfw.Ctx) *mpp.Credential
Credential returns the verified credential stored on the Fiber context.
func WriteChallenge ¶
WriteChallenge serializes a 402 challenge response using RFC 9457 problem details.
This is the Fiber equivalent of server.WriteChallenge. Fiber is built on fasthttp and cannot use http.ResponseWriter directly.
func WritePaymentError ¶
WritePaymentError serializes MPP verification errors as problem details.
This is the Fiber equivalent of server.WritePaymentError. Fiber is built on fasthttp and cannot use http.ResponseWriter directly.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.