Skip to content

simple-eiffel/simple_web

Repository files navigation

simple_ library logo

simple_web

Documentation | GitHub

License: MIT Eiffel Design by Contract

High-level HTTP client and server library for Eiffel applications.

Part of the Simple Eiffel ecosystem.

Status

Production - HTTP client and server both working

Overview

SIMPLE_WEB provides clean APIs for HTTP client operations and HTTP server development. Includes ready-to-use clients for Ollama, Claude, OpenAI, and Grok AI services.

local
    client: SIMPLE_WEB_CLIENT
    response: SIMPLE_WEB_RESPONSE
do
    create client.make
    response := client.get ("https://api.example.com/data")
    if response.is_success then
        print (response.body)
    end
end

Features

  • HTTP Client - GET, POST, PUT, DELETE with fluent builder
  • HTTP Server - Agent-based routing with path parameters
  • JSON Support - Easy JSON request/response handling
  • AI Clients - Ollama, Claude, OpenAI, Grok integrations
  • Hybrid Client - Workaround for localhost POST issues

Installation

  1. Set environment variable:
export SIMPLE_WEB=/path/to/simple_web
  1. Add to ECF:
<library name="simple_web" location="$SIMPLE_WEB/simple_web.ecf"/>

Dependencies

  • simple_json
  • simple_process
  • EWF libraries (included with EiffelStudio)

License

MIT License

About

High-level HTTP Lib for Eiffel

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •