Skip to content

HTTP Client

>=5.3

HTTP is the API client space inside massCode. Use it to keep reusable requests next to your snippets and notes, import existing API collections, test endpoints during development, and store small API collections in your local vault.

Access HTTP from the HTTP icon in the Space rail. The layout follows the same workspace pattern as Code and Notes: folders on the left, requests in the middle, and the request editor with preview and response panels on the right.

When to use HTTP

Use HTTP when you want a lightweight request client without leaving massCode.

  • test local or remote API endpoints
  • save repeatable requests by project or service
  • import collections from OpenAPI, Postman, or Bruno
  • keep request descriptions close to implementation notes
  • switch variables between local, staging, and production environments
  • copy a request as raw HTTP or cURL for debugging and sharing

Main Concepts

Requests

Requests store the method, URL, params, headers, body, auth settings, and markdown description for an API call. The editor autosaves changes, shows an outgoing request preview, and sends the selected request with Cmd+Enter on macOS or Ctrl+Enter on Windows or Linux.

Environments

Environments store reusable variables for local, staging, and production APIs. The URL field keeps variables visible while you edit, while preview and request execution resolve values from the active environment.

Importing Collections

Importing creates HTTP folders, requests, and environments from external collection files. HTTP supports OpenAPI JSON/YAML, Postman Collection v2.1 JSON with optional Postman Environment JSON, and Bruno OpenCollection YAML or ZIP exports.

Folders

HTTP requests are organized in folders. Selecting a folder shows its requests and selects the first request in that folder. Folders support nesting, drag and drop ordering, inline rename, and custom folder icons.

Storage

HTTP data is stored in your vault under the http folder. Requests are markdown files with YAML frontmatter, so they can be backed up and synced together with the rest of your massCode data.

massCode released under the AGPL v3 License.
Snippet collection released under the CC-BY-4.0 License.