HttpResponse.hasHeader Method
Parent Object:
HttpResponseDefined in namespace "adsk::core" and the header file is <Core/Application/HttpResponse.h>
Description
Gets if the response has a header with the given name. This is useful to distinguish between the case where a header is not set and the case where a header is set to an empty string.
Syntax
"httpResponse_var" is a variable referencing a HttpResponse object.returnValue = httpResponse_var.hasHeader(name)
|
"httpResponse_var" is a variable referencing a HttpResponse object.
#include <Core/Application/HttpResponse.h>
returnValue = httpResponse_var->hasHeader(name);
|
Return Value
boolean |
True if a header with this name was set in the response. |
Parameters
name |
string |
The case insensitive name of the header. |
Version
Introduced in version January 2024