post method
Creates an HttpResult for a POST request with optional body.
POST requests are used to create new resources on the server.
body Optional request body (Map, FormData, or null).
Returns an HttpResult configured for POST method.
Example
final user = await request('/api/users')
.post({'name': 'John', 'email': 'john@example.com'})
.json<Map>((json) => json['user']);
Implementation
HttpResult post([dynamic body]) => HttpResult(
this
.._withBody(body)
.._method = "POST",
);