Pike v8.1 release 6

Class Protocols.HTTP.Promise.Arguments

Description

Class representing the arguments to give to get_url(), post_url() put_url(), delete_url() and do_method().


Variable data

void|string|mapping Protocols.HTTP.Promise.Arguments.data

Description

POST data


Variable extra_args

array(mixed) Protocols.HTTP.Promise.Arguments.extra_args

Description

Extra arguments that will end up in the Result object


Variable follow_redirects

bool Protocols.HTTP.Promise.Arguments.follow_redirects

Description

Should redirects be followed. Default is true.


Variable headers

mapping(string:string) Protocols.HTTP.Promise.Arguments.headers

Description

Additional request headers


Variable maxtime

int Protocols.HTTP.Promise.Arguments.maxtime

Description

Request timeout


Variable timeout

int Protocols.HTTP.Promise.Arguments.timeout

Description

Data fetch timeout


Variable variables

mapping(string:mixed) Protocols.HTTP.Promise.Arguments.variables

Description

Query variables


Method create

Protocols.HTTP.Promise.Arguments Protocols.HTTP.Promise.Arguments(void|mapping(string:mixed) args)

Description

If args is given the indices that match any of this object's members will set those object members to the value of the corresponding mapping member.