Skip to content

issues Search Results · repo:sindresorhus/ky language:TypeScript

Filter by

370 results
 (78 ms)

370 results

insindresorhus/ky (press backspace or delete to remove)

Node.js is set to embed Undici (see proposal), allowing the use of the proxy agent and HTTP/2 features without importing external dependencies. It would be great if Ky could support these new fetch() capabilities ...
documentation
good first issue
  • garysassano
  • 1
  • Opened 
    11 days ago
  • #682

If status is 401 then, I just want to remove token from cookie and redirect to login page. Don t want to retry agian. I use nextjs. export const formatError: BeforeErrorHook = async (error) = { const ...
  • zwelhtetyan
  • 4
  • Opened 
    13 days ago
  • #680

When interacting with a server that can respond with either JSON or an HTML document, is there a way to gracefully handle the response with minimal code? Specifically, I want to attempt parsing the response ...
  • garysassano
  • 1
  • Opened 
    16 days ago
  • #678

I d like to propose a new context or ctx option (for greater, anything goes extensibility), which would solve two problems for me (one of which I ve found a not-very-elegant workaround, but the other I ...
enhancement
good first issue
  • Chinoman10
  • 6
  • Opened 
    21 days ago
  • #677

Example: const api = ky.extend({ responseBodyEncoding: json }) Now any time a request is made with ky, it will be as if you called .json() after it api.get( example.com ).json() - api.get( example.com ...
enhancement
  • abubakriz
  • 6
  • Opened 
    21 days ago
  • #676

I d like to better understand how ky compares against got-sraping. The HeaderGeneratorOptions seems a pretty trivial feature to me, since it just sets very few headers you could manually define yourself. ...
  • garysassano
  • 2
  • Opened 
    29 days ago
  • #673

The NormalizedOptions type defines the method property to be NonNullable RequestInit[ method ] ; however, no code ensures options.method is actually set (which works just fine with fetch which defaults ...
  • kleinfreund
  • 2
  • Opened 
    on Feb 10
  • #670

Hi everyone, What do you think about adding the ability to add and remove hooks on an already created instance? I know it s possible to modify an instance with extend, but in this case a new instance ...
  • rtorrente
  • 2
  • Opened 
    on Jan 4
  • #666

// api/instance.ts import ky, { type BeforeRequestHook, type BeforeRetryHook } from ky const beforeRetryHook: BeforeRetryHook = ({ request, options, error, retryCount, }) = { console.log( ...
  • taejinii
  • 1
  • Opened 
    on Dec 26, 2024
  • #665
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Press the
/
key to activate the search input again and adjust your query.
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Press the
/
key to activate the search input again and adjust your query.
Issue search results · GitHub