Class ContentType (2.22.0)

ContentType(value)

Header options corresponding to the content type of a HTTP request body.

Enums

Name Description
TYPE_UNSPECIFIED No content type specified.
URL_ENCODED `body` is in URL-encoded form. Equivalent to setting the `Content-Type` to `application/x-www-form-urlencoded` in the HTTP request.
USER_PROVIDED `body` is in `custom_content_type` form. Equivalent to setting the `Content-Type` to the contents of `custom_content_type` in the HTTP request.