Skip to main content

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

url string required
The URL to make the HTTP request to
method 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'HEAD' | 'OPTIONS'
HTTP method to use (default: GET)
headers Record<string,string>
HTTP headers to include in the request
body unknown
Request body (string or JSON object)
timeout number
Request timeout in milliseconds (default: 30000, max: 120000)
followRedirects boolean
Whether to follow HTTP redirects (default: true)
credentials Record<CredentialType,string>
Optional credentials for authentication (injected at runtime)