mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-03-08 00:07:42 +01:00
18 lines
696 B
C
18 lines
696 B
C
|
|
|
|
extern const char httpHeader[]; // HTTP header
|
|
extern const char httpMimeTypeHTML[]; // HTML MIME type
|
|
extern const char httpMimeTypeText[]; // TEXT MIME type
|
|
extern const char htmlHeader[];
|
|
extern const char htmlEnd[];
|
|
extern const char htmlReturnToMenu[];
|
|
|
|
int HTTP_ProcessPacket(const char *recvbuf, char *outbuf, int outBufSize);
|
|
void http_setup(char *o, const char *type);
|
|
|
|
|
|
// callback function for http
|
|
typedef int (*http_callback_fn)(const char *payload, char *outbuf, int outBufSize);
|
|
// url MUST start with '/'
|
|
// urls must be unique (i.e. you can't have /about and /aboutme or /about/me)
|
|
int HTTP_RegisterCallback( const char *url, http_callback_fn callback); |