Mercurial
comparison seobeo/seobeo.h @ 231:09a96dcb2b4c hg-web
[merge] Join existing hg-web branch head
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Sun, 02 Aug 2026 16:50:48 -0700 |
| parents | 0e7b9464248d |
| children | b8aa08503378 |
comparison
equal
deleted
inserted
replaced
| 217:7ef4c9d2a72d | 231:09a96dcb2b4c |
|---|---|
| 28 #define INITIAL_BUFFER_CAPACITY 4096 | 28 #define INITIAL_BUFFER_CAPACITY 4096 |
| 29 | 29 |
| 30 // HTTP STATUS CODE | 30 // HTTP STATUS CODE |
| 31 #define HTTP_OK 200 | 31 #define HTTP_OK 200 |
| 32 #define HTTP_CREATED 201 | 32 #define HTTP_CREATED 201 |
| 33 #define HTTP_NO_CONTENT 204 | |
| 33 #define HTTP_MOVED_PERMANENTLY 301 | 34 #define HTTP_MOVED_PERMANENTLY 301 |
| 34 #define HTTP_FOUND 302 | 35 #define HTTP_FOUND 302 |
| 35 #define HTTP_BAD_REQUEST 400 | 36 #define HTTP_BAD_REQUEST 400 |
| 36 #define HTTP_UNAUTHORIZED 401 | 37 #define HTTP_UNAUTHORIZED 401 |
| 37 #define HTTP_FORBIDDEN 403 | 38 #define HTTP_FORBIDDEN 403 |
| 80 extern void Seobeo_Client_Request_Add_Header_Array(Seobeo_Client_Request *p_req, const char *header); | 81 extern void Seobeo_Client_Request_Add_Header_Array(Seobeo_Client_Request *p_req, const char *header); |
| 81 /* Set request body with given data and length. */ | 82 /* Set request body with given data and length. */ |
| 82 extern void Seobeo_Client_Request_Set_Body(Seobeo_Client_Request *p_req, const char *body, size_t length); | 83 extern void Seobeo_Client_Request_Set_Body(Seobeo_Client_Request *p_req, const char *body, size_t length); |
| 83 /* Enable/disable following redirects with max redirect count. Default is FALSE with 10 max. */ | 84 /* Enable/disable following redirects with max redirect count. Default is FALSE with 10 max. */ |
| 84 extern void Seobeo_Client_Request_Set_Follow_Redirects(Seobeo_Client_Request *p_req, boolean follow, int32 max_redirects); | 85 extern void Seobeo_Client_Request_Set_Follow_Redirects(Seobeo_Client_Request *p_req, boolean follow, int32 max_redirects); |
| 86 /* Set the maximum idle time for HTTP response reads. Zero disables the timeout. */ | |
| 87 extern void Seobeo_Client_Request_Set_Timeout_Milliseconds(Seobeo_Client_Request *p_req, int32 timeout_ms); | |
| 85 /* Set download path to save response body to file instead of memory. */ | 88 /* Set download path to save response body to file instead of memory. */ |
| 86 extern void Seobeo_Client_Request_Set_Download_Path(Seobeo_Client_Request *p_req, const char *path); | 89 extern void Seobeo_Client_Request_Set_Download_Path(Seobeo_Client_Request *p_req, const char *path); |
| 87 /* Execute the HTTP request and return response. */ | 90 /* Execute the HTTP request and return response. */ |
| 88 extern Seobeo_Client_Response *Seobeo_Client_Request_Execute(Seobeo_Client_Request *p_req); | 91 extern Seobeo_Client_Response *Seobeo_Client_Request_Execute(Seobeo_Client_Request *p_req); |
| 89 /* Destroy request and free all resources. */ | 92 /* Destroy request and free all resources. */ |