Basic Hook
The example reads the request body and sends a JSON response.
from abstra.hooks import get_request, send_json
body, query, headers = get_request()
# Print the request body
print(body)
# Send a ok response
send_json(data={'ok': True}, status_code=200)