Skip to main content

◆ addHttpHeader()

void gpudb::GPUdb::addHttpHeader (const std::string &header,
const std::string &value )

Adds an HTTP header to the map of additional HTTP headers to send to GPUdb with each request.

If the header is already in the map, its value is replaced with the specified value. The user is not allowed to modify the following headers:

  • Authorization
  • Content-type
  • Content-length
  • ha_sync_mode
Parameters
headerthe HTTP header
valuethe value of the HTTP header

See getHttpHeaders() See removeHttpHeader(const std::string&)