/src/trafficserver/include/proxy/http3/Http3SettingsFramer.h
Line | Count | Source |
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 "proxy/http3/Http3FrameGenerator.h" |
27 | | #include "proxy/http3/Http3.h" |
28 | | |
29 | | class Http3SettingsFramer : public Http3FrameGenerator |
30 | | { |
31 | | public: |
32 | 0 | Http3SettingsFramer(NetVConnectionContext_t context) : _context(context){}; |
33 | | |
34 | | // Http3FrameGenerator |
35 | | Http3FrameUPtr generate_frame() override; |
36 | | bool is_done() const override; |
37 | | |
38 | | private: |
39 | | NetVConnectionContext_t _context; |
40 | | bool _is_done = false; ///< Be careful when setting FIN flag on CONTROL stream. Maybe never? |
41 | | bool _is_sent = false; ///< Send SETTINGS frame only once |
42 | | }; |