class Poco::URIRedirection

Overview

An instance of URIRedirection is thrown by a URIStreamFactory::open() if opening the original URI resulted in a redirection response (such as a MOVED PERMANENTLY in HTTP). Moreā€¦

#include <URIStreamFactory.h>

class URIRedirection
{
public:
    // construction

    URIRedirection(const std::string& uri);
    URIRedirection(const URIRedirection& redir);

    // methods

    URIRedirection&
    operator=(const URIRedirection& redir);

    void
    swap(URIRedirection& redir);

    const std::string&
    uri() const;
};

Detailed Documentation

An instance of URIRedirection is thrown by a URIStreamFactory::open() if opening the original URI resulted in a redirection response (such as a MOVED PERMANENTLY in HTTP).

Methods

const std::string&
uri() const

Returns the new URI.