Skip to content

[I] HttpOperationFileBody

The type of an HTTP body that is a file upload or download.

Extends

Properties

PropertyModifierTypeDescriptionOverridesInherited from
bodyKindreadonly"file"---
contentsreadonlyModelProperty & objectThe contents property.--
contentTypePropertyreadonlyModelPropertyThe contentType property.HttpOperationBodyBase.contentTypeProperty-
contentTypesreadonlystring[]The list of inner media types of the file. In other words, what kind of files can be returned. This is determined by the contentType property of the file model.HttpOperationBodyBase.contentTypes-
filenamereadonlyModelPropertyThe filename property.--
isTextreadonlybooleanWhether the file contents should be represented as a string or raw byte stream. True if the contents property is a string, false if it is bytes. Emitters may choose to represent textual files as strings or streams of textual characters. If this property is false, emitters must expect that the contents may contain non-textual data.--
property?readonlyModelPropertyThe payload property that defined this body, if any.-HttpOperationBodyBase.property
typereadonlyModelThe model type of the body that is or extends Http.File.--