1 /** @file 2 3 A brief file description 4 5 @section license License 6 7 Licensed to the Apache Software Foundation (ASF) under one 8 or more contributor license agreements. See the NOTICE file 9 distributed with this work for additional information 10 regarding copyright ownership. The ASF licenses this file 11 to you under the Apache License, Version 2.0 (the 12 "License"); you may not use this file except in compliance 13 with the License. You may obtain a copy of the License at 14 15 http://www.apache.org/licenses/LICENSE-2.0 16 17 Unless required by applicable law or agreed to in writing, software 18 distributed under the License is distributed on an "AS IS" BASIS, 19 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 20 See the License for the specific language governing permissions and 21 limitations under the License. 22 */ 23 24 #pragma once 25 26 #include "tscore/ink_platform.h" 27 #include "I_Net.h" 28 29 // XXX HttpSessionAccept::Options needs to be refactored and separated from HttpSessionAccept so that 30 // it can generically apply to all protocol implementations. 31 #include "http/HttpSessionAccept.h" 32 33 // HTTP/QUIC Session Accept. 34 // 35 // HTTP/QUIC needs to be explicitly enabled on a server port. The syntax is different for SSL and raw 36 // ports. The example below configures QUIC on port 443 (with TLS). 37 // 38 // CONFIG proxy.config.http.server_ports STRING 443:quic 39 40 class Http3SessionAccept : public SessionAccept 41 { 42 public: 43 explicit Http3SessionAccept(const HttpSessionAccept::Options &); 44 ~Http3SessionAccept(); 45 46 bool accept(NetVConnection *, MIOBuffer *, IOBufferReader *); 47 int mainEvent(int event, void *netvc); 48 49 private: 50 Http3SessionAccept(const Http3SessionAccept &); 51 Http3SessionAccept &operator=(const Http3SessionAccept &); 52 53 HttpSessionAccept::Options options; 54 }; 55