@@ -105,6 +105,9 @@ class HttpClient : public Client
105
105
*/
106
106
void sendHeader (const char * aHeader);
107
107
108
+ void sendHeader (const String& aHeader)
109
+ { sendHeader (aHeader.c_str ()); }
110
+
108
111
/* * Send an additional header line. This is an alternate form of
109
112
sendHeader() which takes the header name and content as separate strings.
110
113
The call will add the ": " to separate the header, so for example, to
@@ -114,6 +117,9 @@ class HttpClient : public Client
114
117
*/
115
118
void sendHeader (const char * aHeaderName, const char * aHeaderValue);
116
119
120
+ void sendHeader (const String& aHeaderName, const String& aHeaderValue)
121
+ { sendHeader (aHeaderName.c_str (), aHeaderValue.c_str ()); }
122
+
117
123
/* * Send an additional header line. This is an alternate form of
118
124
sendHeader() which takes the header name and content separately but where
119
125
the value is provided as an integer.
@@ -124,6 +130,9 @@ class HttpClient : public Client
124
130
*/
125
131
void sendHeader (const char * aHeaderName, const int aHeaderValue);
126
132
133
+ void sendHeader (const String& aHeaderName, const int aHeaderValue)
134
+ { sendHeader (aHeaderName.c_str (), aHeaderValue); }
135
+
127
136
/* * Send a basic authentication header. This will encode the given username
128
137
and password, and send them in suitable header line for doing Basic
129
138
Authentication.
@@ -132,6 +141,9 @@ class HttpClient : public Client
132
141
*/
133
142
void sendBasicAuth (const char * aUser, const char * aPassword);
134
143
144
+ void sendBasicAuth (const String& aUser, const String& aPassword)
145
+ { sendBasicAuth (aUser.c_str (), aPassword.c_str ()); }
146
+
135
147
/* * Finish sending the HTTP request. This basically just sends the blank
136
148
line to signify the end of the request
137
149
*/
0 commit comments