proxygen
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
ZlibCertificateCompressor.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2018-present, Facebook, Inc.
3
* All rights reserved.
4
*
5
* This source code is licensed under the BSD-style license found in the
6
* LICENSE file in the root directory of this source tree.
7
*/
8
9
#pragma once
10
11
#include <
fizz/protocol/CertificateCompressor.h
>
12
#include <zlib.h>
13
14
namespace
fizz
{
15
class
ZlibCertificateCompressor
:
public
CertificateCompressor
{
16
public
:
17
explicit
ZlibCertificateCompressor
(
int
compressLevel);
18
~ZlibCertificateCompressor
()
override
=
default
;
19
20
CertificateCompressionAlgorithm
getAlgorithm
()
const override
;
21
22
CompressedCertificate
compress
(
const
CertificateMsg
&)
override
;
23
24
private
:
25
const
int
level_
;
26
};
27
}
// namespace fizz
fizz::CertificateCompressionAlgorithm
CertificateCompressionAlgorithm
Definition:
Types.h:167
fizz::CompressedCertificate
Definition:
Types.h:242
fizz::ZlibCertificateCompressor::ZlibCertificateCompressor
ZlibCertificateCompressor(int compressLevel)
Definition:
ZlibCertificateCompressor.cpp:15
fizz::ZlibCertificateCompressor::level_
const int level_
Definition:
ZlibCertificateCompressor.h:25
fizz::CertificateMsg
Definition:
Types.h:236
fizz::ZlibCertificateCompressor::getAlgorithm
CertificateCompressionAlgorithm getAlgorithm() const override
Definition:
ZlibCertificateCompressor.cpp:26
CertificateCompressor.h
fizz::ZlibCertificateCompressor::~ZlibCertificateCompressor
~ZlibCertificateCompressor() override=default
fizz::ZlibCertificateCompressor::compress
CompressedCertificate compress(const CertificateMsg &) override
Definition:
ZlibCertificateCompressor.cpp:31
fizz
Definition:
Actions.h:16
fizz::CertificateCompressor
Definition:
CertificateCompressor.h:14
fizz::ZlibCertificateCompressor
Definition:
ZlibCertificateCompressor.h:15
proxygen
fizz
fizz
protocol
ZlibCertificateCompressor.h
Generated by
1.8.11