HttpResponse.getHeader Method
Parent Object:
HttpResponseDefined in namespace "adsk::core" and the header file is <Core/Application/HttpResponse.h>
Description
Gets the value of a header.
Syntax
"httpResponse_var" is a variable referencing a HttpResponse object.returnValue = httpResponse_var.getHeader(name)
|
"httpResponse_var" is a variable referencing a HttpResponse object.
#include <Core/Application/HttpResponse.h>
returnValue = httpResponse_var->getHeader(name);
|
Return Value
string |
Returns the value of the header, or empty if the header was not found. You can use the hasHeader method to determine if the header exists before getting it. This is especially useful in the case where the header exists but has an empty string value. |
Parameters
name |
string |
The case insensitive name of the header. |
Version
Introduced in version January 2024