direct_http
An simple and low-level rust REST API library.
Response
Response is a struct that represents the HTTP response.
It contains a status enum that represents the status code, an optional message of type String, and optional data of type Value.
You should always construct the Response using the status you want to return. Passing an message or data is optional.
response
let response = status
response with data
let response = status.data
response with message
let response = status.message
response with data and message
let response = status.message.data