Skip to main content
Version: Next 🚧

[F] isContentTypeHeader

function isContentTypeHeader(program, property): boolean

Parameters

ParameterTypeDescription
programProgramProgram
propertyModelPropertyModel property.

Returns

boolean

True if the model property is marked as a header and has the name content-type(case insensitive.)

Deprecated

Use OperationProperty.kind === 'contentType' instead. Check if the given model property is the content type header.