Skip to content

[F] getHttpFileModel

function getHttpFileModel(
program,
type,
filter?
): HttpFileModel | undefined;

Recognizes a model whose contentType, filename, and contents originate from an HTTP file. Returns undefined for non-models, missing file properties, or a retained property count other than three.

ParameterTypeDescription
programProgram-
typeType-
filter?(property) => booleanOptional filter used only when counting effective properties, for example to exclude HTTP metadata. The returned model and properties are not cloned or filtered.

HttpFileModel | undefined