Composables
A composable function, also known as a hook, is a function that connects you to the event context, which includes URL parameters, request body, cookies, and more.
Read more about Wooks Composables
Wooks HTTP provides various useful composable functions that can be categorized into the following groups:
- Request Composables: Functions related to the request, such as headers, cookies, and the request body.
- Response Composables: Functions for setting the response, including setting headers and cookies.
You can also create your own composables to encapsulate additional logic, such as retrieving user data based on cookies or authentication headers.