9 #include "fwNetworkIO/config.hpp" 11 #include <fwCore/base.hpp> 32 typedef std::map<std::string, std::string>
HeadersType;
42 FWNETWORKIO_API
Request(
const std::string& url);
56 FWNETWORKIO_API
static Request::sptr New(
const std::string& url);
61 FWNETWORKIO_API
void addHeader(
const std::string& key,
const std::string& value);
66 FWNETWORKIO_API
void setHeaders(
const HeadersType& headers);
71 FWNETWORKIO_API
const HeadersType& getHeaders()
const;
76 FWNETWORKIO_API
const std::string& getUrl()
const;
81 FWNETWORKIO_API
void setUrl(
const std::string& url);
85 HeadersType m_headers;
Base class for all FW4SPL's classes.
virtual ~Request()
Construct a new Request with given url.
The namespace fwNetworkIO contains the primary methods to access network.
#define fwCoreClassDefinitionsWithFactoryMacro(_classinfo_, _parameters_, _factory_)
Generate common construction methods for classes with one factory.
#define fwCoreAllowSharedFromThis()
Generate getSptr and getConstSptr methods.
std::map< std::string, std::string > HeadersType
Maps header name to its value.