Performs an HTTP request using libsoup3.
Requires libsoup3 as an optional runtime dependency. If not available, returns a Response with status 400.
libsoup3
The URL to fetch
Request options (method, headers, body, params)
A Response object
const res = await fetch('https://api.example.com/data');const data = await res.json();const res2 = await fetch('https://api.example.com/post', { method: 'POST', body: JSON.stringify({ key: 'value' }), headers: { 'Content-Type': 'application/json' },}); Copy
const res = await fetch('https://api.example.com/data');const data = await res.json();const res2 = await fetch('https://api.example.com/post', { method: 'POST', body: JSON.stringify({ key: 'value' }), headers: { 'Content-Type': 'application/json' },});
Performs an HTTP request using libsoup3.
Requires
libsoup3as an optional runtime dependency. If not available, returns a Response with status 400.