Kore 3
Loading...
Searching...
No Matches
includes
kore3
network
http.h
Go to the documentation of this file.
1
#ifndef KORE_NETWORK_HTTP_HEADER
2
#define KORE_NETWORK_HTTP_HEADER
3
4
#include <
kore3/global.h
>
5
6
#include <stdbool.h>
7
11
12
#ifdef __cplusplus
13
extern
"C"
{
14
#endif
15
16
#define KORE_HTTP_GET 0
17
#define KORE_HTTP_POST 1
18
#define KORE_HTTP_PUT 2
19
#define KORE_HTTP_DELETE 3
20
21
typedef
void (*kore_http_callback)(
int
error,
int
response,
const
char
*body,
void
*callbackdata);
22
26
KORE_FUNC
void
kore_http_request
(
const
char
*url,
const
char
*path,
const
char
*data,
int
port,
bool
secure,
int
method,
const
char
*header,
27
kore_http_callback callback,
void
*callbackdata);
28
29
#ifdef __cplusplus
30
}
31
#endif
32
33
#endif
global.h
Provides basic functionality that's used all over the place. There's usually no need to manually incl...
kore_http_request
KORE_FUNC void kore_http_request(const char *url, const char *path, const char *data, int port, bool secure, int method, const char *header, kore_http_callback callback, void *callbackdata)
Fires off an http request.
Generated by
1.15.0