sindresorhus/
Tiny and elegant HTTP client based on the browser Fetch API
USD raised
Recent activities
More comprehensive `retry` option
Sending form-data
Implement & document a way to disable timeouts
Fix Travis
Set the `accept` header when shortcut methods are called
Support access input, options in hooks
Set headers after ky declared
猫の額爪の垢を煎じて飲む sounds so strange as the description of this library
Does not work when mocking `window.fetch`
Should be `prefixUrl` prepended if `input` is a URL instance?
Promise never/rarely resolves
Adding header in beforeRequest downcases it on android
delay causes node process to hang
[feature request] support array of query string parameters in get request
Skipping request by returning a Response in beforeRequest
How to set Response headers?
Passing a Request object as first argument to ky fails
TypeScript - Union `Options` complicates `ky` API
Modify the request URL in the `beforeRequest` hook
`afterResponse` hook doesn't work with the new expanded `retry` option
Document how to override headers in beforeRequest hook
Ky typescript, jest and es modules + temp solution
regeneratorRuntime is not defined
afterResponse hook causes response Promise to hang
Validate input
Using with http-proxy-middleware
Support boolean options in `searchParams`?
add 'beforeRequest' example in docs
Support retries on certain network failures
Using umd.js with traditional <script> tag causes ReferenceError: can't access lexical declaration ky before initialization
`document` is not available in WebWorkers on Safari which leads to TypeError
Remove headers
how to parse error response?
Don't throw on `204 No Content` when parsing response
beforeRetry hook should expose failed response
TypeScript error when using afterResponse hook example from documentation
Document `prefixUrl` reasonings
Can't override Request 'Accept' header
Regression in global property lookup
Error: The `content-type` header cannot be used with a FormData body. It will be set automatically.
Move named exports to properties of default export
Header set in beforeRequest hook not overridden by request options
Multipart boundary mismatch when using search params
Typing beforeRequestHook arguments - no exported member 'NormalizedOptions'?
update hooks signatures in readme
ReferenceError: 'URLSearchParams' is not defined
ky in typescript don't work
Issue with Retries after v0.16.0
Add default headers without re exporting it everywhere
Issue with 1 ms delay before awaiting fetch
Request not cancelled when timeout occurs
falsey values in `json` prop are not sent to server
TypeScript issue with React Native + /// <reference lib="dom"/>
Disable retry
Uniformize Error Types
searchParams without base url break
retry not working with POST (with OPTIONS preflight) and 401 statuscode
Support for static / custom backoff types
Retries for POST still broken
TypeError invalid URL when using relative URL and searchParams
HTTPError type is not exported
NormalizedOptions interface giving wrong Headers type
Cannot read property 'clone' of undefined
throwHttpErrors: false suppresses ky.TimeoutError
Compatibility with fetch-mock
An undefined HTTPError message breaks New Relic
TypeError o.response is undefined
Why does ky throw errors on 3xx responses?
Unhandled Rejection (Error): `input` must not begin with a slash when using `prefixUrl`
Support custom JSON parser
Add an ES5 build for older browsers
Ky create not working with typescript
Creating a client with headers throws an exception if isomorphic-fetch was required before
not get corrrect html
Edge <= 18 Invalid argument exception
Compatibility with chrome 53
`error.response.clone()` trigger error
Question regarding Q&A
Include request URL in TimeoutError message
Can external "fetch dependency be injected to ky"
parseJson() is not called in AfterResponseHook
How to skip SSL certificate checking?
How to do retries after timeouts?
ky does not work with create-react-app
SyntaxError: Unexpected token 'export'
[vite] dependency ky does not have default entry defined in package.json.
add "main", "module" and "types" field
Hook libraries
Include request object in HTTPError
BeforeRetryHook type definitions
Stand-alone type definitions for NormalizedOptions
Broken ky.stop
Ky's types don't work in Deno's Typescript
TypeScript: the type for `ky.TimeoutError` does not expose `request`
Deno and TypeScript "Property 'get' does not exist on type"
ReferenceError: Property 'Reflect' doesn't exist on ReactNative Android
Discussions
Improve project discovery
[Feature request] Typing JSON response using TS generics
Reconsider dropping named exports
Any plan/interest to rewrite in TypeScript?
NextJs 10 / ky 0.26.x can't compile esm
globalThis polyfill required?
merging searchParams by ky.create() occurs unnecessary headers query string
How to set headers in post request?
Warning on react-native: "Package ky has been ignored because it contains invalid configuration"
Cannot set timeout
Import error when using next.js
Fix TypeScript ignore directives
POST request doesn't have body for Tizen 2017
Module not found: Can't resolve 'ky' with version 0.28
Using `json` field hangs with high CPU (with Deno)
Discrepancy between doc and types for searchparams options in v 0.28
1ms delay before fetch causing issues with New Relic SPA logger
Options type is not exported anymore
Recent Ky Update No Longer Works With Next.js
Can't Override Prefix URL in beforeRequest hook
beforeRequestFn processing changed after 0.28.2 > 0.28.3 upgrade
package.json file missing from exports
[question] generating ky code from openapi specs
why node >= 12?
[DEP0151] DeprecationWarning under Node.js 16
The `credentials` field on `RequestInitializerDict` is not implemented; Cloudflare Workers issue.
Allow custom content-type header to be set
Question getting retry to work
How to send FormData with application/json?
Example for Typescript
multiple response headers with the same name are being clobbered
Allow providing custom global methods
"Require Cycle" warn while using "ky" with "react-native"
Customize retry backoff algorithm
Several retry problems
this package can't run in react-native
Response details are lost when using onDownloadProgress
Missing "sourcesContent" in source map
Stucked on GET error
prefixURL not working correctly when used as environmental variable
Retry option is invalid for back-end server
1.0.0 release?
Headers are not sent when mode is no-cors
HTTP2 (h2) support
Allow extend() to add hooks
Recent versions of ky are not published to deno.land/x
`beforeError` hook
Got a typescript issue with ky
Parse empty response bodies without throwing
Built-in APIs
Using this library in a cordova app is causing setTimeout to not invoke its callbacks
Automatically send CSRF token from CSRF cookie on a header
can pass options argument when invoke options.fetch?
_ky.default.get(...).json is not a function Jest
Json return empty string if server responds with a 202 status code
Ky does not seem to handle large JSON responses well
Use original request for fetch and store cloned request for retries
referrerPolicy is unset if json is used
ky overwrites `content-length` to 0 although set in the post request header
Empty 204 response throw error - 0.31.0
source contains non-free font Optima
Download file from s3 url
Chrome@105 Failed to construct Request The duplex member must be specified
Ky 0.31.2 fails on NodeJS 18.7.0
0.32.2 breaking on Cloudflare Workers
0.31.2 - `ReadableStream` is missing on firefox
TypeError: globalThis.Request is not a constructor
`ky(…).text()` returns stringified response object
In v0.32.0, `.json()` returns an empty string if "Transfer-Encoding: chunked" header is present (and thus "Content-Length: [...]" header is absent)
TypeError: Cannot set property duplex of #<Request> which has only a getter
`DOMException` returned from `composeAbortError` does not have name AbortError
`browser` file is emitted on Webpack and Babel umd library build
How to send raw text body in POST request
Using "Retry-After" with error code 425 is impossible
Add onUploadProgress callback function?
Uncaught (in promise) TypeError: Response.json: Body has already been consumed.
Lost headers from options if doing a post with json body => leads to unexpected 401 Unauthorized.
Error 1101 on `esm.sh`
What is an example of using jest.mock("ky") with mockResolvedValue?
Want to stop or fetch/get token values inside hooks
TypeError: The "emitter" argument must be an instance of EventEmitter or EventTarget. Received an instance of AbortSignal
Does ky support RequestCache?
Version 0.32.2 broke Ky in react native
Custom retry delay?
Loader problem
Options are overwritten if json option is used
Can't set user agent header
Always get error TypeError: Failed to fetch
Error: Package subpath 'undefined' is not defined by "exports" in node_modules/ky/package.json
Full compatibility with Bun
Not compatibility with Cloudflare Workers
ky in the vite environment request hint cors.
Unable to extend NormalizedOptions + Options
How can I use a proxy like in axios?
"fetch() request with GET/HEAD/OPTIONS method cannot have body" in Bun
retry is wrongly counting
Error: `unsupported BodyInit type` on some runtimes
Ky does not pass custom options down to the native fetch
is there a way to prevent HttpError when response is not in range
POST request fails in Astro.js API route
Header not set on node version 18.18.2
[help] trying to understand why headers are not set properly
1.1.1 breaks multipart form boundary
Tests are hanging
TypeError: signal.throwIfAborted is not a function
Support for SSL client certificate in Nodejs undici
How to abort retry before hitting the retry limit?
Cannot use import statement outside a module, Jest
Types for headers
How to handle HTTP Delete Method (204) with ky?
[BUG] When Response is a string(not valid JSON), `json` method occurs error
Cannot find module 'undici-types' or its corresponding type declarations
await ky.get('url').json() or .text() is an empty string sometimes
response.clone(...).arrayBuffer is not a function
Content-Type detection
In Next.js app: Only absolute URLs are supported
Compatibility issue with Cloudflare Worker
Why I keep getting HTTPError when the throwHttpErrors is already set to `false`
beforeError hook isn't called on 500 responses
how to send binary data?
Error: unsupported BodyInit type
retry not working?
HTTPError json as unknown/type
Allow extend() to append to prefixUrl
[TypeError: signal.throwIfAborted is not a function (it is undefined)] in React Native context
Set TimeoutError#cause to be Request or URL
How to download files from external host
Expected a Promise rejection for option errors
retry and beforeRetry not triggered
Use `X-RateLimit-Reset` header to determine retry delay
Consider extracting the HTTPError logic to an external module
Aggregated error on server side.
Using FormData With Ky Causes Script to Never Terminate
Error in Safari: TypeError: Object.hasOwn is not a function
headers prop missing
Introduction of Object.hasOwn in Release 1.6.0
No way to set timeout for .text() / .json()?
KyResponse, KyRequest to interface, not type.
Chrome latest version ky version 0.31.0 is getting this error TypeError: Cannot set property duplex of #<Request> which has only a getter
Implement oAuth 1.0 in ky
© 2019 BoostIO, Inc.