Fix doc format

Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
main
Jianhui Zhao 2017-12-06 23:22:48 +08:00
parent 2ab93c9680
commit 93705e0853
2 changed files with 3 additions and 4 deletions

View File

@ -77,9 +77,9 @@ struct uh_request {
struct uh_header header[UH_HEADER_NUM_LIMIT];
};
struct uh_connection {
struct uh_connection {
int sock;
#if (UHTTP_SSL_ENABLED)
#if (UHTTP_SSL_ENABLED)
void *ssl;
#endif
unsigned char flags;

View File

@ -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_var(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}' */
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)
/* Init ssl for the server */
int uh_ssl_init(struct uh_server *srv, const char *cert, const char *key);