Skip to end of banner
Go to start of banner

httpCreateHeader

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

Availability

This routine is available starting with SIL Engine™ 4.1.0.

Syntax

httpCreateHeader(key, value)

Description

Creates an HttpHeader object.

Parameters

Parameter name

Type

Required

Description

key

string

Yes

The key for the http header.

valuestringYesThe value for the http header.

Return type

HttpHeader

Example

HttpRequest request;
HttpHeader header = httpCreateHeader("Content-Type", "application/json");
request.headers += header;

See also


  • No labels