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"
Click to show internal directories.
Click to hide internal directories.