git.iko.soy/rowtype-yoga/purescript-yoga-bun-yoga
on main help sign in
c8e32e0Mark
src/Yoga/Bun/HTTP.js+2−2
@@ -37,5 +37,5 @@ export const searchParamImpl = (url) => (name) => new URL(url).searchParams.get(
37// Request header (method call, needs .bind or direct call)
37// Request header (method call, needs .bind or direct call)
38export const requestHeaderImpl = (req) => (name) => req.headers.get(name);
38export const requestHeaderImpl = (req) => (name) => req.headers.get(name);
39
39
40−// Request body as text (returns Promise)
40+// Request body as text (returns Promise wrapped in Effect thunk)
41−export const requestTextImpl = (req) => req.text();
41+export const requestTextImpl = (req) => () => req.text();