11.2.2 • Published 2 years ago
stein-fetch v11.2.2
Fetch cursor
import fetch from 'stein-fetch'
// Create cursor using the same options as `fetch`
const fetchCursor = fetch(url, {
headers: {
'Content-Type': 'application/json',
}
})
// Modify the request if desired
fetchCursor.setHeaders({
['x-some-header']: 'yep',
})
// Call toJS to get the fetch result
const res = await fetchCursor.toJS()
11.2.2
2 years ago
11.0.0
2 years ago
10.0.0
3 years ago
9.0.0-rc.6
3 years ago
8.0.13
3 years ago
9.0.0
3 years ago
9.0.0-rc.4
3 years ago
9.0.0-rc.2
3 years ago
8.0.12
3 years ago
8.0.6
3 years ago
8.0.5
3 years ago
8.0.4
3 years ago