Fixed compatibility for HTTPClient Library. (HTTPClient by Donatien Garnier)

Dependents:   FlashAir_Twitter CyaSSL-Twitter-OAuth4Tw TweetTest NetworkThermometer ... more

Fork of OAuth4Tw by Masayoshi Takahashi

Committer:
ban4jp
Date:
Tue Jul 14 09:31:13 2015 +0000
Revision:
5:5146becb651f
Parent:
1:0036880e6f71
Fixed argument of post method.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ban4jp 1:0036880e6f71 1 /* HTTPPostText.h */
ban4jp 1:0036880e6f71 2 /* Copyright (C) 2012 mbed.org, MIT License
ban4jp 1:0036880e6f71 3 *
ban4jp 1:0036880e6f71 4 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software
ban4jp 1:0036880e6f71 5 * and associated documentation files (the "Software"), to deal in the Software without restriction,
ban4jp 1:0036880e6f71 6 * including without limitation the rights to use, copy, modify, merge, publish, distribute,
ban4jp 1:0036880e6f71 7 * sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
ban4jp 1:0036880e6f71 8 * furnished to do so, subject to the following conditions:
ban4jp 1:0036880e6f71 9 *
ban4jp 1:0036880e6f71 10 * The above copyright notice and this permission notice shall be included in all copies or
ban4jp 1:0036880e6f71 11 * substantial portions of the Software.
ban4jp 1:0036880e6f71 12 *
ban4jp 1:0036880e6f71 13 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
ban4jp 1:0036880e6f71 14 * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
ban4jp 1:0036880e6f71 15 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
ban4jp 1:0036880e6f71 16 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
ban4jp 1:0036880e6f71 17 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
ban4jp 1:0036880e6f71 18 */
ban4jp 1:0036880e6f71 19
ban4jp 1:0036880e6f71 20
ban4jp 1:0036880e6f71 21 #ifndef HTTPPostText_H_
ban4jp 1:0036880e6f71 22 #define HTTPPostText_H_
ban4jp 1:0036880e6f71 23
ban4jp 1:0036880e6f71 24 #include "data/HTTPText.h"
ban4jp 1:0036880e6f71 25
ban4jp 1:0036880e6f71 26 /** A data endpoint to store text
ban4jp 1:0036880e6f71 27 */
ban4jp 1:0036880e6f71 28 class HTTPPostText : public HTTPText
ban4jp 1:0036880e6f71 29 {
ban4jp 1:0036880e6f71 30 public:
ban4jp 1:0036880e6f71 31 /** Create an HTTPPostText instance for output
ban4jp 1:0036880e6f71 32 * @param str String to be transmitted
ban4jp 1:0036880e6f71 33 */
ban4jp 1:0036880e6f71 34 HTTPPostText(char* str);
ban4jp 1:0036880e6f71 35
ban4jp 1:0036880e6f71 36 /** Create an HTTPPostText instance for input
ban4jp 1:0036880e6f71 37 * @param str Buffer to store the incoming string
ban4jp 1:0036880e6f71 38 * @param size Size of the buffer
ban4jp 1:0036880e6f71 39 */
ban4jp 1:0036880e6f71 40 HTTPPostText(char* str, size_t size);
ban4jp 1:0036880e6f71 41
ban4jp 1:0036880e6f71 42 protected:
ban4jp 1:0036880e6f71 43 //IHTTPDataIn
ban4jp 1:0036880e6f71 44 virtual int getDataType(char* type, size_t maxTypeLen); //Internet media type for Content-Type header
ban4jp 1:0036880e6f71 45
ban4jp 1:0036880e6f71 46 //IHTTPDataOut
ban4jp 1:0036880e6f71 47 virtual void setDataType(const char* type); //Internet media type from Content-Type header
ban4jp 1:0036880e6f71 48
ban4jp 1:0036880e6f71 49 };
ban4jp 1:0036880e6f71 50
ban4jp 1:0036880e6f71 51 #endif /* HTTPPostText_H_ */