Ky
OfficialBetav0.1.0@kubb/plugin-ky
kubb add plugin-ky
How-to guides
6 guides
Call operationsCall a generated function with grouped request options, read the typed result, and pass content types or Ky options for one call.Configure requestsSet the base URL, credentials, shared headers, and interceptors on the generated Ky client, for every call or for one.Handle errorsHandle HTTP and network errors in the generated Ky client with ResponseError, or return errors as values with throwOnError: false.Configure serializationConfigure how the generated Ky 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 Ky client. Stop, resume, and handle streaming errors.Use a custom transportSend the generated client through your own Ky instance, or replace the network send with your own function.
