Closed neurotech closed 7 years ago
I really debated this and decided I'd wait and see if someone wanted it! 1/2
How do you think it should work? Could see the return object being {headers, body}
maybe?
That sounds great to me. In my mind's eye I see something like:
{
headers: {
date: 'foo',
link: 'baz',
...
},
body: [...]
}
another way, backwards compatible (tho idc about that hugely as its such a small lib)
tiny.get(options, function _got(err, body, headers) {
console.log({err, body, headers})
})
I just tried that, and got this in return:
{
err: null,
body: [...],
headers: undefined
}
oh ya! that doesn't exist yet / just brainstorming!! wanna get @ednapiranha's feedback too
Ah my apologies I misunderstood.
@brianleroux do you have a rough idea of how long it will take to get this implemented? (Just planning ahead with regards to a Christmas project). Please let me know as soon as you can.
oh sorry / I'll gotcha something today promise! 💯
Aight @neurotech just published 🌟 shiny 5.0
with support for {body, headers}
in the callback continuation result. Hope this helps!
Thank you so much, you are top shelf! ✨
Hi @brianleroux
Is there any way to "get" the headers of the result returned by
tiny-json-http
? Below is some example code that may help explain my question: