Creates a ky client.
This client is customized with hooks to integrate with Output.ai tracing.
The ky options to extend the base client.
A ky instance extended with Output.ai tracing hooks.
import { httpClient } from '@output.ai/http';const client = httpClient({ prefixUrl: 'https://api.example.com', timeout: 30000, retry: { limit: 3 }});const response = await client.get('users/1');const data = await response.json(); Copy
import { httpClient } from '@output.ai/http';const client = httpClient({ prefixUrl: 'https://api.example.com', timeout: 30000, retry: { limit: 3 }});const response = await client.get('users/1');const data = await response.json();
Creates a ky client.
This client is customized with hooks to integrate with Output.ai tracing.