developer-delphi-horse-compression

Compress Horse HTTP responses with GZIP or DEFLATE middleware.

Updated Jan 6, 2026
One-click install
npx skills add https://github.com/cslsoftwares/ParamentersORM --skill developer-delphi-horse-compression
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: developer-delphi-horse-compression
Source: https://github.com/cslsoftwares/ParamentersORM/tree/main/.cursor/skills/developer-delphi-horse-compression_V1.0.0
Command: npx skills add https://github.com/cslsoftwares/ParamentersORM --skill developer-delphi-horse-compression

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Middleware that compresses HTTP responses using GZIP or DEFLATE for Horse to reduce payload sizes and speed up clients that support Accept-Encoding.

Core Features & Use Cases

  • Overloads: Compression() with default threshold, Compression(threshold), and Compression([TCompressionType]) to select the compression type (gzip/deflate).
  • Pipeline order: Compression should be registered as the first middleware to ensure responses are compressed early in the pipeline.
  • Compatibility: Works with THorse routing and can be combined with other middlewares like Jhonson.

Quick Start

Include the Compression middleware before Jhonson in the THorse pipeline to enable automatic response compression.

Frequently Asked Questions about developer-delphi-horse-compression

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

FAQPage Schema
How do I compress HTTP responses in a Horse application?

To compress HTTP responses in a Horse application, register the Compression middleware early in the THorse pipeline to apply GZIP or DEFLATE compression, reducing payload sizes for clients that indicate Accept-Encoding support.

When should I use HTTP compression middleware for Horse APIs?

HTTP compression middleware for Horse APIs should be used in production when clients indicate Accept-Encoding support and payload sizes are large enough to benefit from compression, which you can control using threshold-based configurations.

How do I configure GZIP or DEFLATE compression in Horse?

You can configure GZIP or DEFLATE compression in Horse by calling the Compression method overloads, passing a custom threshold value or specifying the desired compression type via the TCompressionType parameter.

Does the Horse compression middleware work with Jhonson and other middlewares?

Yes, the Horse compression middleware works with THorse routing and other middlewares like Jhonson, but it should be registered as the first middleware in the pipeline to ensure responses are compressed early.

What is the correct pipeline order for Horse compression middleware?

The correct pipeline order for Horse compression middleware is to register it as the first middleware, placing it before other middlewares like Jhonson, to ensure HTTP responses are compressed early in the pipeline.