native

ezhttp_create_options

Syntax

native EzHttpOptions:ezhttp_create_options(bool:auto_destroy = true);

Description

Creates new options object. This object allows you to configure your request by specifying
such parameters as user agent, query parameters, headers, and etc.
Options are reusable request templates. Their values are copied into a request when it is sent.
By default the options handle is destroyed automatically when the last request using it finishes.

Parameters

auto_destroy When true, the handle is released automatically after it becomes idle.
Set to false when you want to keep reusing the same handle across
multiple request lifecycles and destroy it manually later.

Return

EzHttpOptions handle.