Process options request. Useful for CORS.
| 116 | |
| 117 | /// Process options request. Useful for CORS. |
| 118 | void processOptionsRequest(HTTPServerResponse & response, const Poco::Util::LayeredConfiguration & config) |
| 119 | { |
| 120 | /// If can add some headers from config |
| 121 | if (tryAddHTTPOptionHeadersFromConfig(response, config)) |
| 122 | { |
| 123 | response.setKeepAlive(false); |
| 124 | response.setStatusAndReason(HTTPResponse::HTTP_NO_CONTENT); |
| 125 | response.send(); |
| 126 | } |
| 127 | } |
| 128 | } |
| 129 | |
| 130 | static std::chrono::steady_clock::duration parseSessionTimeout( |
no test coverage detected