You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`Context` implements `context.Context`. However due to [current limitations in how fasthttp](https://github.com/valyala/fasthttp/issues/965#issuecomment-777268945) works, `Deadline()`, `Done()` and `Err()` operate as a nop.
45
+
`Context` implements `context.Context`. However due to [current limitations in how fasthttp](https://github.com/valyala/fasthttp/issues/965#issuecomment-777268945) works, `Deadline()`, `Done()` and `Err()` operate as a nop. The `fiber.Ctx` instance is reused after the handler returns and must not be used for asynchronous operations once the handler has completed. Call [`Context()`](#context-1) within the handler to obtain a `context.Context` that can be used outside the handler.
-**SendString**: Similar to Express.js, sends a string as the response.
483
483
-**String**: Similar to Express.js, converts a value to a string.
484
484
-**Value**: For implementing `context.Context`. Returns request-scoped value from Locals.
485
+
-**Context()**: Returns a `context.Context` that can be used outside the handler.
486
+
-**SetContext**: Sets the base `context.Context` returned by `Context()` for propagating deadlines or values.
485
487
-**ViewBind**: Binds data to a view, replacing the old `Bind` method.
486
488
-**CBOR**: Introducing [CBOR](https://cbor.io/) binary encoding format for both request & response body. CBOR is a binary data serialization format which is both compact and efficient, making it ideal for use in web applications.
487
489
-**MsgPack**: Introducing [MsgPack](https://msgpack.org/) binary encoding format for both request & response body. MsgPack is a binary serialization format that is more efficient than JSON, making it ideal for high-performance applications.
0 commit comments