api-server

command
v1.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package main demonstrates how to build an HTTP API server using Hermes.

This example shows how to: - Create a REST API for content extraction - Handle different content formats (JSON, HTML, Markdown, Text) - Implement proper error handling and HTTP status codes - Add request validation and rate limiting basics - Structure responses consistently - Handle concurrent requests efficiently

Run with: go run examples/api-server/main.go Test with: curl "http://localhost:8080/parse?url=https://example.com&format=json"

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL