dm_z_type_from_encoding Function

public pure elemental function dm_z_type_from_encoding(encoding) result(z)

Returns compression type enumerator from HTTP content encoding:

  • Z_TYPE_NONE – If trimmed encoding string is empty.
  • Z_TYPE_ZLIB – On deflate.
  • Z_TYPE_ZSTD – On zstd.
  • Z_TYPE_INVALID – On any other encoding.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: encoding

Content encoding name.

Return Value integer