A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
Loading...
Searching...
No Matches
a11::net::DescribeEndpointOptions Struct Reference

Where and whether a server answers discovery over plain HTTP. More...

#include <cpp/a11/net/describe_endpoint.h>

Public Member Functions

bool Enabled () const
 Whether this server should answer discovery at all.
 

Public Attributes

DescribeActionsHandler handler {}
 
std::string path = std::string(kDefaultDescribeEndpoint)
 

Detailed Description

Where and whether a server answers discovery over plain HTTP.

An empty handler leaves the endpoint unserved, and the server's existing 404 stands. That is the default: a transport does not describe anything until something above it says what to describe.

Member Function Documentation

◆ Enabled()

bool a11::net::DescribeEndpointOptions::Enabled ( ) const
inline

Whether this server should answer discovery at all.

Member Data Documentation

◆ handler

DescribeActionsHandler a11::net::DescribeEndpointOptions::handler {}

◆ path

std::string a11::net::DescribeEndpointOptions::path = std::string(kDefaultDescribeEndpoint)

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