Skip to content
Ky logo

Ky

OfficialBetav0.6.2

@kubb/plugin-ky

kubb add plugin-ky

How-to guides

6 guides
Call operations
Call a generated function with grouped request options, read the typed result, and pass content types or Ky options for one call.
Configure requests
Set the base URL, credentials, shared headers, and interceptors on the generated Ky client, for every call or for one.
Handle errors
Handle HTTP and network errors in the generated Ky client with ResponseError, or return errors as values with throwOnError: false.
Configure serialization
Configure how the generated Ky client serializes OpenAPI parameters and encodes request and response bodies by media type.
Server-sent events
Consume typed server-sent events and JSON Lines with the generated Ky client. Stop, resume, and handle streaming errors.
Use a custom transport
Send the generated client through your own Ky instance, or replace the network send with your own function.