Share via


RouteCacheCompressionSettings Class

Definition

settings for compression.

public class RouteCacheCompressionSettings : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Cdn.Models.RouteCacheCompressionSettings>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Cdn.Models.RouteCacheCompressionSettings>
public class RouteCacheCompressionSettings
type RouteCacheCompressionSettings = class
    interface IJsonModel<RouteCacheCompressionSettings>
    interface IPersistableModel<RouteCacheCompressionSettings>
type RouteCacheCompressionSettings = class
Public Class RouteCacheCompressionSettings
Implements IJsonModel(Of RouteCacheCompressionSettings), IPersistableModel(Of RouteCacheCompressionSettings)
Public Class RouteCacheCompressionSettings
Inheritance
RouteCacheCompressionSettings
Implements

Constructors

RouteCacheCompressionSettings()

Initializes a new instance of RouteCacheCompressionSettings.

Properties

ContentTypesToCompress

List of content types on which compression applies. The value should be a valid MIME type.

IsCompressionEnabled

Indicates whether content compression is enabled on AzureFrontDoor. Default value is false. If compression is enabled, content will be served as compressed if user requests for a compressed version. Content won't be compressed on AzureFrontDoor when requested content is smaller than 1 byte or larger than 1 MB.

Explicit Interface Implementations

IJsonModel<RouteCacheCompressionSettings>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<RouteCacheCompressionSettings>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<RouteCacheCompressionSettings>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<RouteCacheCompressionSettings>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<RouteCacheCompressionSettings>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to