Function FollowRedirects

Synopsis

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

void FollowRedirects(bool follow, int maxRedirects=-1l)

Description

configure whether to follow redirects on this connection

set whether to follow redirects, maxRedirects indicitng the maximum number of redirects to follow

Parameters

follow - - boolean whether to follow redirects

maxRedirects - - int indicating the maximum number of redirect to follow (-1 unlimited, default)

Mentioned in

Source

Lines 146-150 in source/connection.cc. Line 177 in include/restclient-cpp/connection.h.

void
RestClient::Connection::FollowRedirects(bool follow, int maxRedirects) {
  this->followRedirects = follow;
  this->maxRedirects = maxRedirects;
}





Add Discussion as Guest

Log in