add http client

This commit is contained in:
2024-01-07 00:24:56 +08:00
parent 49070e1e60
commit 2515ccdb54
8 changed files with 642 additions and 0 deletions

View File

@@ -27,6 +27,14 @@ int cstr_is_integer(const char* str, int allow_sign);
* @return 1 if successed otherwise 0.
*/
int cstr_tolowercase(const char* str, size_t input_len, char** output);
/**
* @brief Convert string to uppercase
* @param str Origin string
* @param input_len The length of origin string. If is 0, strlen will be called to calculate length.
* @param output Output string. Need free memory by calling free.
* @return 1 if successed otherwise 0.
*/
int cstr_touppercase(const char* str, size_t input_len, char** output);
/**
* @brief Convert bytes to uint32
* @param bytes Bytes (at least 4 bytes)