123456789101112131415161718192021222324 |
- /**
- * @Author: 李建
- * @Date: 2023/12/13 17:58:01
- * @LastEditors: 李建
- * @LastEditTime: 2023/12/13 17:58:01
- * Description: http 请求
- * Copyright: Copyright (©)}) 2023 YXLJ@2024. All rights reserved.
- */
- #ifndef __NET_HTTP_CLIENT_H__
- #define __NET_HTTP_CLIENT_H__
- #include <stdio.h>
- #define BUFFER_SIZE_MAX 5000
- typedef void (* http_callback)(char* response, void * user_data);
- typedef struct {
- void *user_data;
- char *url;
- http_callback callback;
- } net_http_config_t;
- void net_http_post(const char * post_data, net_http_config_t callback);
- void net_http_get(net_http_config_t callback);
- #endif
|