http-client

Create LPC HTTP client daemons for Oxidus issuing outbound requests and managing responses.

8|3|Updated Sep 29, 2021
One-click install
npx skills add https://github.com/gesslar/oxidus-mudlib --skill http-client-gesslar
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: http-client
Source: https://github.com/gesslar/oxidus-mudlib/tree/main/.claude/skills/http-client
Command: npx skills add https://github.com/gesslar/oxidus-mudlib --skill http-client-gesslar

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

LPC-based HTTP client daemons enable Oxidus components to perform outbound requests, handle responses, and manage lifecycle events without embedding ad-hoc network logic.

Core Features & Use Cases

  • Inherit from STD_HTTP_CLIENT to simplify socket management, request sending, and response parsing.
  • Support common HTTP methods (GET, POST, PUT, DELETE) and handle redirects, TLS/HTTPS, and content negotiation.
  • Use EXT_HTTP helpers for URL parsing, encoding, decoding, and caching to implement reliable API clients, webhooks, and service integrations.

Quick Start

Instantiate a custom daemon that inherits STD_HTTP_CLIENT and implement your response handlers to process status codes and parsed bodies.

Frequently Asked Questions about http-client

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create an LPC HTTP client for outbound API requests?

You can build an LPC HTTP client daemon by inheriting from STD_HTTP_CLIENT, which handles socket management, request sending, and response parsing for outbound HTTP requests across GET, POST, PUT, and DELETE methods.

How does an LPC daemon handle HTTP redirects and TLS connections?

The LPC HTTP client daemon handles TLS connections and HTTP redirects natively. By inheriting STD_HTTP_CLIENT, your daemon manages secure HTTPS requests, follows redirect chains, and processes response bodies automatically.

Can I use a simple fetch-and-callback pattern instead of a full daemon?

Yes, you can use the optional HTTPC_D wrapper for a simple fetch-and-callback pattern. This provides a lightweight alternative to full STD_HTTP_CLIENT inheritance when you only need basic outbound request and response handling.

What is the best way to parse URLs and encode data in LPC HTTP clients?

Use the EXT_HTTP helpers to parse URLs and encode data in LPC HTTP clients. These helpers provide reliable URL parsing, encoding, decoding, and caching for building robust API clients and service integrations.

How do I manage response lifecycle events in an LPC HTTP daemon?

You manage response lifecycle events in an LPC HTTP daemon by implementing callback lifecycle methods. STD_HTTP_CLIENT defines these callback methods so you can process status codes and parsed response bodies as they arrive.

Does STD_HTTP_CLIENT support all common HTTP methods for webhook integrations?

Yes, STD_HTTP_CLIENT supports common HTTP methods including GET, POST, PUT, and DELETE. This allows you to implement versatile webhook integrators and service adapters across your LPC daemons.