Implementation:SeleniumHQ Selenium CivetServer Impl
| 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
- Repository: SeleniumHQ_Selenium
- File: third_party/cpp/civetweb/CivetServer.cpp
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, ...);