pdk.flow.HttpRequest (since 5.0.6)

Contains functions that can be applied to HttpRequest structures

All functions


getHeader

Gets a header by name. If the request contains multiple headers with the same name, only the first will be returned.

Arguments:

Result:

Possible exceptions


getHeaderValue

Gets the value of a header by name. If the request contains multiple headers with the same name, only the first value will be returned.

Arguments:

Result:

  • output :: pdk.core.String - Header value as String or NULL if it doesn't exist

Possible exceptions


getHeaderValues

Get header values by name. Use this function in case of multiple headers with the same name.

Arguments:

Result:

Possible exceptions


isHeaderExists

Determines whether the header exists in the request.

Arguments:

Result:

Possible exceptions


getCookie

Gets a cookie by name.

Arguments:

Result:

Possible exceptions


isCookieExists

Determines whether the cookie exists in the request.

Arguments:

Result:

Possible exceptions

Last updated