Http

spec.Http (Interface) → backend.Http

Backend interface for HTTP networking operations.

This interface provides HTTP client functionality for making web requests. It's available when the http plugin is enabled in ceramic.yml.

The implementation handles platform-specific networking APIs and provides a unified interface for GET, POST, PUT, DELETE and other HTTP methods.

Used by the ceramic.Http class to provide high-level HTTP functionality.

Instance Members

request(options: backend.HttpRequestOptions, done: Function): Void

Performs an HTTP request with the specified options.

This is a flexible method that supports all HTTP methods, custom headers, request bodies, and various response types. The request is performed asynchronously and the callback is invoked when complete.

Name Type Description
options backend.HttpRequestOptions The request configuration including URL, method, headers, body, etc.
done Function Callback invoked with the response (or error response on failure)

Metadata

Name Parameters
:hxGen -