Malloy
Loading...
Searching...
No Matches
malloy::server::http::preflight_config Struct Reference

Public Member Functions

void setup_response (malloy::http::response<> &resp, std::span< malloy::http::method > methods) const

Public Attributes

std::string origin = "http://127.0.0.1:8080"

Member Function Documentation

◆ setup_response()

void preflight_config::setup_response ( malloy::http::response<> & resp,
std::span< malloy::http::method > methods ) const

Setup a response.

Warning
The lifetime of this must exceed the lifetime of the passed parameters.
Parameters
respThe response to setup.
methodsList of method strings supported.

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