[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.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
program | Program | - |
type | Type | - |
filter? | (property) => boolean | Optional filter used only when counting effective properties, for example to exclude HTTP metadata. The returned model and properties are not cloned or filtered. |
Returns
Section titled “Returns”HttpFileModel | undefined