marr-cloud/ofetch HTTP Request

Make HTTP requests from your workflow using unjs/ofetch, a modern fetch wrapper.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
urlRequest URL (absolute, or relative when baseURL is set).yes
methodHTTP method.GET
baseURLBase URL prepended to url.no
bodyRequest body. Sent as-is; a JSON string is not re-encoded.no
queryQuery parameters as a JSON object string, e.g. '{"page":"1"}'.no
headersExtra request headers as a JSON object string.no
contentTypeContent-Type for the request body.application/json
timeoutRequest timeout in milliseconds.no
retryNumber of retry attempts on failure.no
retryDelayDelay between retries in milliseconds.no
retryStatusCodesComma-separated status codes that trigger a retry, e.g. "429,500,503".no
responseTypeForce response parsing as "json" or "text". Auto-detected when unset.no
ignoreResponseErrorDo not fail on non-2xx responses (also skips status-based retry).false
bearerTokenBearer token without the "Bearer " prefix. Sent as the Authorization header.no
usernameUsername for Basic authentication.no
passwordPassword for Basic authentication.no
filesJSON map of field name to a file path or array of paths, sent as multipart/form-data, e.g. '{"report":["a.html","b.json"]}'.no
filePath to a single file sent as application/octet-stream.no
responseFilePersist the response body to this file path.no
maskResponseMask the response value in logs.false
ignoreStatusCodesComma-separated status codes treated as success (no failure).no
preventFailureOnNoResponseDo not fail when no response is received (network error).false
namedescription
responseResponse body (JSON serialized to a string, or raw text).
headersResponse headers as a JSON object string.
statusHTTP status code.
requestErrorOn failure, a JSON string with name, message, status, and data.