parent
2ab93c9680
commit
93705e0853
|
@ -77,9 +77,9 @@ struct uh_request {
|
||||||
struct uh_header header[UH_HEADER_NUM_LIMIT];
|
struct uh_header header[UH_HEADER_NUM_LIMIT];
|
||||||
};
|
};
|
||||||
|
|
||||||
struct uh_connection {
|
struct uh_connection {
|
||||||
int sock;
|
int sock;
|
||||||
#if (UHTTP_SSL_ENABLED)
|
#if (UHTTP_SSL_ENABLED)
|
||||||
void *ssl;
|
void *ssl;
|
||||||
#endif
|
#endif
|
||||||
unsigned char flags;
|
unsigned char flags;
|
||||||
|
|
|
@ -116,12 +116,11 @@ struct uh_str *uh_get_path(struct uh_connection *con);
|
||||||
struct uh_str *uh_get_query(struct uh_connection *con);
|
struct uh_str *uh_get_query(struct uh_connection *con);
|
||||||
struct uh_str uh_get_var(struct uh_connection *con, const char *name);
|
struct uh_str uh_get_var(struct uh_connection *con, const char *name);
|
||||||
struct uh_str *uh_get_header(struct uh_connection *con, const char *name);
|
struct uh_str *uh_get_header(struct uh_connection *con, const char *name);
|
||||||
|
int uh_get_con_sock(struct uh_connection *con);
|
||||||
|
|
||||||
/* Unescapes strings like '%7B1,%202,%203%7D' would become '{1, 2, 3}' */
|
/* Unescapes strings like '%7B1,%202,%203%7D' would become '{1, 2, 3}' */
|
||||||
int uh_unescape(const char *str, int len, char *out, int olen);
|
int uh_unescape(const char *str, int len, char *out, int olen);
|
||||||
|
|
||||||
int uh_get_con_sock(struct uh_connection *con);
|
|
||||||
|
|
||||||
#if (UHTTP_SSL_ENABLED)
|
#if (UHTTP_SSL_ENABLED)
|
||||||
/* Init ssl for the server */
|
/* Init ssl for the server */
|
||||||
int uh_ssl_init(struct uh_server *srv, const char *cert, const char *key);
|
int uh_ssl_init(struct uh_server *srv, const char *cert, const char *key);
|
||||||
|
|
Loading…
Reference in New Issue