Skip to main content

http.content

http.content(type)

Description

Sets the content-type header.

Parameters

ParameterTypeExplanation
typeStringThe content-type header

Example

http = option.http

http.content("application/json")