discussions Search Results · user:sindresorhus language:swift archived:false is:public
Filter by
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?
:
Hi,
Sorry, but how do you use context for storing tokens, and then how do you retrieve them?
I was trying something along the lines of below, but I m wrong :)
const api = got.extend({
hooks: {
...
:
What would you like to discuss?
responseType Type: string Default: text
Note: When using streams, this option is ignored.
The parsing method. Can be text , json or buffer .
The promise also has .text(), ...
:
What would you like to discuss?
How can I find out the rendered URL with all searchParams etc?
I m having some issues where I expect the searchParams being wrongly encoded and would like to verify that ...
:
I don t see any example on documentation to convert the response body to type T. I just need the response body as Array
Jobs instead string.
I tried this
const response: Array Jobs = await this._agentyApi(url, ...
:
Is there a way to get remote URL in beforeError hook without adding context for each request?
For example, on timeout would be handy to log remote URL what caused the timeout.
:
Im currently tring to test a got request using jest using nock to intercept requests.
import { genAlphaNumeric } from @annaliseai/api-specifications/build/core/Gen ;
import express from express ;
import ...
:
I was trying to use GOT (latest) to write some niche tests that send some json that probably only people trying to break
your server would use.
values such as: true, false, null, 123, 1, [1,2,3].
But ...
:
Is it possible with got.post() to receive a fitxero pdf?
I am trying it with this: const res = await got.post(url { header, bodysuit: bodysuit, pdf: true });
But the response gives an error because I ...
:
Hi all - i have a weird issue when using the got library in my AWS Lambda code (the code is used for
cloudwatch-synthetics canaries, in case you re familiar). Previously, I used node-fetch, request, and ...
:
Hello, looking for best practices on implementing a reconnect after a stream is disconnected, and running into a snag w/
the provided documentation.
Referenced documentation:
https://github.com/sindresorhus/got/blob/main/documentation/3-streams.md#createretrystream ...