WPILibC++ 2024.3.2
wpi::WebSocketServer::ServerOptions Struct Reference

Server options. More...

#include <wpinet/WebSocketServer.h>

Public Attributes

std::function< bool(std::string_view)> checkUrl
 Checker for URL. More...
 
std::function< bool(std::string_view)> checkHost
 Checker for Host header. More...
 

Detailed Description

Server options.

Member Data Documentation

◆ checkHost

std::function<bool(std::string_view)> wpi::WebSocketServer::ServerOptions::checkHost

Checker for Host header.

Return true if Host should be accepted. By default all hosts are accepted.

◆ checkUrl

std::function<bool(std::string_view)> wpi::WebSocketServer::ServerOptions::checkUrl

Checker for URL.

Return true if URL should be accepted. By default all URLs are accepted.


The documentation for this struct was generated from the following file: