restapi.rest.response.ResponseMaker.gzip_response

static ResponseMaker.gzip_response(content, code, content_encoding, content_type)[source]
Parameters:
  • content (bytes)

  • code (int)

  • content_encoding (Optional[str])

  • content_type (Optional[str])

Return type:

tuple[Optional[bytes], dict[str, str]]