@@ -44,15 +44,17 @@ namespace curl {
44
44
/* *
45
45
* The constructor allow a fast way to build a cookie.
46
46
*/
47
- cookie (const std::string, const std::string, const cookie_datetime &, const std::string = " " , const std::string = " " , const bool = false );
47
+ cookie (const std::string&, const std::string&, const cookie_datetime &,
48
+ const std::string& = " " , const std::string& = " " , bool = false );
48
49
/* *
49
50
* This constructor overloades the previous one.
50
51
*/
51
- cookie (const char *, const char *, const cookie_datetime &, const char * = " " , const char * = " " , const bool = false );
52
+ cookie (const char *, const char *, const cookie_datetime &, const char * = " " ,
53
+ const char * = " " , bool = false );
52
54
/* *
53
55
* This method allows to specify the cookie name.
54
56
*/
55
- cookie *set_name (const std::string);
57
+ cookie *set_name (const std::string& );
56
58
/* *
57
59
* This method overloads the previous one allowing to specify a const char *
58
60
* instead of a string.
@@ -61,15 +63,15 @@ namespace curl {
61
63
/* *
62
64
* This method allows to specify the cookie value.
63
65
*/
64
- cookie *set_value (const std::string);
66
+ cookie *set_value (const std::string& );
65
67
/* *
66
68
* This method allows to specify the cookie value,
67
69
*/
68
70
cookie *set_value (const char *);
69
71
/* *
70
72
* This method allows to specify the cookie path.
71
73
*/
72
- cookie *set_path (const std::string) NOEXCEPT;
74
+ cookie *set_path (const std::string& ) NOEXCEPT;
73
75
/* *
74
76
* This method overloads the previous one allowing to specify a const char *
75
77
* instead of a string.
@@ -78,7 +80,7 @@ namespace curl {
78
80
/* *
79
81
* This method allows to specify the cookie domain.
80
82
*/
81
- cookie *set_domain (const std::string) NOEXCEPT;
83
+ cookie *set_domain (const std::string& ) NOEXCEPT;
82
84
/* *
83
85
* This method overloads the previous one allowing to specify a const char *
84
86
* instead of a string.
@@ -87,17 +89,17 @@ namespace curl {
87
89
/* *
88
90
* This method allows to specify the cookie security.
89
91
*/
90
- cookie *set_secure (const bool ) NOEXCEPT;
92
+ cookie *set_secure (bool ) NOEXCEPT;
91
93
/* *
92
94
* This method overloads the previous one allowing to specify an integer instead
93
95
* of a bool.
94
96
*/
95
- cookie *set_secure (const unsigned int );
97
+ cookie *set_secure (unsigned int );
96
98
/* *
97
99
* This method overloads the previous one allowing to specify a string to indicate
98
100
* whether the cookie is secure (with "secure" keyword) or not (empty string).
99
101
*/
100
- cookie *set_secure (const std::string) NOEXCEPT;
102
+ cookie *set_secure (const std::string& ) NOEXCEPT;
101
103
/* *
102
104
* This method overloads the previous one allowing to specify a string to indicate
103
105
* whether the cookie is secure (with "secure" keyword) or not (empty string).
0 commit comments