Use this annotation on a service method param when you want to directly control the request body
of a POST/PUT request (instead of sending in as request parameters or form-style request
body).
Use this annotation on a service method param when you want to add individual fields
to the request body without defining a complete DTO class. This is useful when you
need to include additional fields in the request body alongside existing data, or when
you only need to send a few specific fields without creating a full data transfer object.
Annotation for cancelling the request.
When applied to a parameter, allows the method to accept a CancelToken
that can be used to cancel the HTTP request.
Control recording the input to a Stream video. Behavior depends on the mode.
In most cases, the video will initially be viewable as a live video and
transition to on-demand after a condition is satisfied.
LogInterceptor is used to print logs during network requests.
It should be the last interceptor added,
otherwise modifications by following interceptors will not be logged.
This is because the execution of interceptors is in the order of addition.
Provides runtime metadata for a @Part annotation.
Use this annotation to supply dynamic values like contentType or fileName
that need to be determined at runtime rather than at compile time.
Annotation for tracking download progress.
When applied to a parameter, allows the method to accept a callback
function that will be invoked with progress updates during data reception.
Annotation for tracking upload progress.
When applied to a parameter, allows the method to accept a callback
function that will be invoked with progress updates during data transmission.
If you want to custom the transformation of request/response data,
you can provide a Transformer by your self, and replace
the transformer by setting the Dio.transformer.
Extra data that will be passed to Dio's request, response, transformer, and interceptors.
Extend TypedExtras and define fields that correspond to the keys passed into extras.
The values of these fields will be derived from the data passed into your subclass.
Object specifying more fine-grained status for this video item.
If "state" is "inprogress" or "error", "step" will be one of "encoding" or
"manifest". When "state" is "inprogress", "pctComplete" will be a number
between 0 and 100 indicating the approximate percent of that step that has
been completed. If the "state" is "error", "errorReasonCode" and
"errorReasonText" will contain additional details.