Skip to content

discussions Search Results · user:sindresorhus language:swift archived:false is:public language:CSS language:C language:CSS

265 results  (204 ms)

265 results

insindresorhus (press backspace or delete to remove)
Some qualifiers in your query (language, archived) are not supported when searching discussions. Try searching for repositories instead?

I m using ky to make HTTP requests in Bun, but I m getting a TypeScript error stating that proxy cannot be specified in the Options object. While the proxy actually works perfectly at runtime thanks to ...

I have an instance of TOR running on 127.0.0.1:9150. How do I set GOT to proxy through it?

Both proposals are currently stage 0 and I am looking for support from libraries like this, Ky, which handle untrusted data from the network. Links: https://github.com/Guthib-of-Dan/proposal-json-parse-binary ...

There are probably a lot of cool use-cases for this app that I wouldn t think of. Please share your use-case here and I ll put the best ones in the readme and App Store description. Here are some that ...

Good morning, I searched the documentation and couldn t find anything that could help me. How could I configure an HTTPS agent in the request? I know that in Axios, I can do it this way (the method I m ...

I don t see logs from Ky when it fails, the request simply don t fire, and I don t see any logs as to why. I had the following code: export const client = ky.create({ prefixUrl: `${elasticClientUrl}/${index}`, ...

Hello, I would like to know the best way to retry a request based on the content of the response. I saw that the shouldRetry option was recently added. But what if the response returns a status of 200 ...

Hi community, Is got uses dns.lookup() or dns.resolve() for DNS resolving? In case if it is dns.lookup() under the hood, shall I pass an instance of CacheableLookup to cache the resolutions as well as ...

In ky v1.12, this worked fine: declare module ky { interface Options { context?: MyContext; } interface NormalizedOptions { context?: MyContext; } } After upgrading to v1.13, I get ...

I am using the afterResponse to check if the user s token is expired to redirect them to sign out page - afterResponse: [ async (_input, _options, response) = { if (response.status === UNAUTHORIZED_ERROR_CODE) ...