WPILibC++  2019.3.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
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

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.

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: