* Easy interface is used to make requests and transfers. * You don't have to worry about freeing data or things like * that. The class will do it for you. */
| 969 | * that. The class will do it for you. |
| 970 | */ |
| 971 | class curl_easy : public curl_interface<CURLcode> { |
| 972 | public: |
| 973 | /** |
| 974 | * The default constructor will initialize the easy handler |
| 975 | * using libcurl functions. |
| 976 | */ |
| 977 | curl_easy(); |
| 978 | /** |
| 979 | * This overloaded constructor allows users to specify a |
| 980 | * stream where they want to put the output of the libcurl |
| 981 | * operations. |
| 982 | */ |
| 983 | template<class T> explicit curl_easy(curl_ios<T> &); |
| 984 | /** |
| 985 | * This overloaded constructor allows users to specify a flag |
| 986 | * used to initialize libcurl environment. |
| 987 | */ |
| 988 | explicit curl_easy(long); |
| 989 | /** |
| 990 | * This overloaded constructor specifies the environment |
| 991 | * initialization flags and an output stream for the libcurl output. |
| 992 | */ |
| 993 | template<class T> curl_easy(long, curl_ios<T> &); |
| 994 | /** |
| 995 | * Copy constructor to handle pointer copy. Internally, it uses |
| 996 | * a function which duplicates the easy handler. |
| 997 | */ |
| 998 | curl_easy(const curl_easy &); |
| 999 | /** |
| 1000 | * Move constructor that moves an easy handler from an istance to |
| 1001 | * another. |
| 1002 | */ |
| 1003 | curl_easy(curl_easy &&) NOEXCEPT; |
| 1004 | /** |
| 1005 | * Assignment operator used to perform assignment between objects |
| 1006 | * of this class. |
| 1007 | */ |
| 1008 | curl_easy &operator=(const curl_easy &); |
| 1009 | /** |
| 1010 | * Override of equality operator. It has been overridden to check |
| 1011 | * whether two curl_easy objects are equal. |
| 1012 | */ |
| 1013 | bool operator==(const curl_easy &) const; |
| 1014 | /** |
| 1015 | * The destructor will perform cleanup operations. |
| 1016 | */ |
| 1017 | ~curl_easy() NOEXCEPT override; |
| 1018 | /** |
| 1019 | * Allows users to specify an option for the current easy handler, |
| 1020 | * using a curl_pair object. |
| 1021 | */ |
| 1022 | template<typename T> void add(const curl_pair<CURLoption,T>&); |
| 1023 | /** |
| 1024 | * Allows users to specify a list of options for the current |
| 1025 | * easy handler. In this way, you can specify any iterable data |
| 1026 | * structure. |
| 1027 | */ |
| 1028 | template<typename Iterator> void add(Iterator, Iterator); |
nothing calls this directly
no outgoing calls
no test coverage detected