Http Bubble
Makes HTTP requests to external APIs and services
Quick Start
import { HttpBubble } from '@bubblelab/bubble-core';
const result = await new HttpBubble({
url: 'example', // The URL to make the HTTP request to
}).action();
Operation Details
execute
- Input Schema
- Output Schema
urlstring required- The URL to make the HTTP request to
method'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'HEAD' | 'OPTIONS'- HTTP method to use (default: GET)
headersRecord<string,string>- HTTP headers to include in the request
bodyunknown- Request body (string or JSON object)
timeoutnumber- Request timeout in milliseconds (default: 30000, max: 120000)
followRedirectsboolean- Whether to follow HTTP redirects (default: true)
credentialsRecord<CredentialType,string>- Optional credentials for authentication (injected at runtime)
statusnumber required- HTTP status code
statusTextstring required- HTTP status text
headersRecord<string,string> required- Response headers
bodystring required- Response body as string
jsonunknown- Parsed JSON response (if applicable)
successboolean required- Whether the request was successful (HTTP 2xx status codes)
errorstring required- Error message if request failed
responseTimenumber required- Response time in milliseconds
sizenumber required- Response size in bytes