Axios
Officialv6.2.0@kubb/plugin-axios
kubb add plugin-axios
How-to guides
7 guides
Call operationsCall a generated function with grouped request options, read the typed result, and pass content types or native axios settings for one call.Configure requestsSet the base URL, credentials, shared headers, and interceptors on the generated Axios client, for every call or for one.Handle errorsHandle HTTP and network errors in the generated Axios client with ResponseError, or return errors as values with throwOnError: false.Migrate to v6Upgrade @kubb/plugin-axios from v5 to v6, which runs on the shared client core from @kubb/plugin-client with axios as the transport.Configure serializationConfigure how the generated Axios client serializes OpenAPI parameters and encodes request and response bodies by media type.Server-sent eventsConsume typed server-sent events and JSON Lines with the generated Axios client. Stop, resume, and handle streaming errors.Use a custom transportReplace the network send of the generated axios client with your own axios instance or function.
