forked from HISONA/https_client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhttps.h
More file actions
23 lines (16 loc) · 638 Bytes
/
https.h
File metadata and controls
23 lines (16 loc) · 638 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//
// Created by HISONA on 2016. 2. 29..
//
#ifndef HTTPS_CLIENT_HTTPS_H
#define HTTPS_CLIENT_HTTPS_H
/*---------------------------------------------------------------------*/
char *strtoken(char *src, char *dst, int size);
int http_init(int id);
int http_close(int id);
int http_get(int id, char *url, char *response, int size);
int http_post(int id, char *url, char *data, char *response, int size);
void http_strerror(char *buf, int len);
int http_open_chunked(int id, char *url);
int http_write_chunked(int id, char *data, int len);
int http_read_chunked(int id, char *response, int size);
#endif //HTTPS_CLIENT_HTTPS_H