Send Data
Methods to send data over the HTTP response
Headers
To work headers use net::http::response
Body
Send body content
Plain Text
To send plain text use net::http::response::text
JSON Data
To send JSON data use net::http::response::json
The result is
Form Data
To send form data use net::http::response::form
The result is
net::formdata_send supports erase and contains methods.
Custom Sync Callback
Use net::http::response::callback_sync to send binary data in synchronous mode
Custom Async Callback
Use net::http::response::callback_async to send binary data in asynchronous mode
Stream Callback
Use net::http::response::callback_stream to send binary data in stream mode