nn::boss::TaskActionBase::AddHeaderField Member Function

Syntax

nn::Result AddHeaderField(
     const char * pLabel,
     const char * pValue
);

Parameters

Name Description
in pLabel Specifies the header name.
in pValue Specifies the header value.

Return Values

Returns the function's execution result. Returns one of the Result values listed below.
Value Description
Result::IsSuccess Set successfully.
ResultHttpRequestHeaderPointerNull The HTTP request header pointer is NULL.
ResultInvalidMaxHttpRequestHeader The HTTP request header registration count exceeds the maximum.
A value other than the above. Unexpected error (see boss_Result.h for error details).

Description

Adds header fields to the HTTP header.

Revision History

2010/09/16
Initial version.

CONFIDENTIAL