Function GetInfo

Synopsis

#include <include/restclient-cpp/connection.h>

RestClient::Connection::Info GetInfo()

Description

getters/setters

get diagnostic information about the connection object

Returns
RestClient::Connection::Info struct

Mentioned in

Source

Lines 74-99 in source/connection.cc. Line 213 in include/restclient-cpp/connection.h.

RestClient::Connection::Info
RestClient::Connection::GetInfo() {
  RestClient::Connection::Info ret;
  ret.baseUrl = this->baseUrl;
  ret.headers = this->GetHeaders();
  ret.timeout = this->timeout;
  ret.followRedirects = this->followRedirects;
  ret.maxRedirects = this->maxRedirects;
  ret.noSignal = this->noSignal;
  ret.progressFn = this->progressFn;
  ret.progressFnData = this->progressFnData;
  ret.basicAuth.username = this->basicAuth.username;
  ret.basicAuth.password = this->basicAuth.password;
  ret.customUserAgent = this->customUserAgent;
  ret.lastRequest = this->lastRequest;

  ret.certPath = this->certPath;
  ret.certType = this->certType;
  ret.keyPath = this->keyPath;
  ret.keyPassword = this->keyPassword;

  ret.uriProxy = this->uriProxy;
  ret.unixSocketPath = this->unixSocketPath;

  return ret;
}





Add Discussion as Guest

Log in