Jump to content

Connect SuperML | Leeroopedia MCP: Equip your AI agents with best practices, code verification, and debugging knowledge. Powered by Leeroo — building Organizational Superintelligence. Contact us at founders@leeroo.com.

Implementation:SeleniumHQ Selenium CivetServer Impl

From Leeroopedia
Knowledge Sources
Domains C_Plus_Plus, Vendored_Library
Last Updated 2026-02-12 00:00 GMT

Overview

Vendored C++ implementation of the CivetServer class, providing a high-level C++ wrapper around the CivetWeb embedded HTTP server.

Description

Implements the CivetServer class and associated handler base classes. Provides default (no-op) implementations for HTTP method handlers (handleGet, handlePost, handleHead, handlePut, handlePatch, handleDelete, handleOptions) in CivetHandler, and WebSocket connection handlers in CivetWebSocketHandler. Used by Selenium's IE WebDriver as an embedded HTTP server for handling WebDriver protocol requests. Licensed under MIT.

Usage

Compiled as part of the Selenium IE WebDriver native components. Not consumed directly by end users.

Code Reference

Source Location

Key Classes

// Default handler implementations
CivetHandler::handleGet(CivetServer *server, struct mg_connection *conn);
CivetHandler::handlePost(CivetServer *server, struct mg_connection *conn);
CivetHandler::handleHead(CivetServer *server, struct mg_connection *conn);
CivetHandler::handlePut(CivetServer *server, struct mg_connection *conn);
CivetHandler::handlePatch(CivetServer *server, struct mg_connection *conn);
CivetHandler::handleDelete(CivetServer *server, struct mg_connection *conn);
CivetHandler::handleOptions(CivetServer *server, struct mg_connection *conn);
CivetWebSocketHandler::handleConnection(CivetServer *server, ...);

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment