WPILibC++  2020.3.2-60-g3011ebe
wpi::WebSocketServer::ServerOptions Struct Reference

Server options. More...

#include <WebSocketServer.h>

Public Attributes

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

Detailed Description

Server options.

Member Data Documentation

◆ checkHost

std::function<bool(StringRef)> 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(StringRef)> 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: