post method
Sends a POST request to path.
Supplying data creates a replayable JSON body. Use body for an
explicit AlphaX body such as bytes, text, a stream, or multipart; the two
parameters are mutually exclusive. Passing data: null intentionally
sends the JSON value null.
Implementation
Future<AlphaXResponse> post(
String path, {
Map<String, Object?>? queryParameters,
Map<String, String>? headers,
Object? data = _alphaXDataNotSupplied,
AlphaXBody? body,
Duration? timeout,
AlphaXCancellationToken? cancellationToken,
}) => _send(
HttpMethod.post,
path,
queryParameters: queryParameters,
headers: headers,
data: data,
body: body,
timeout: timeout,
cancellationToken: cancellationToken,
);