parent
6bc0e5fa16
commit
4d27dc49ac
|
@ -567,12 +567,12 @@ void uh_register_default_hook(struct uh_server *srv, uh_hookfn_t cb)
|
||||||
srv->default_cb = cb;
|
srv->default_cb = cb;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum http_method uh_get_method(struct uh_connection *con)
|
inline enum http_method uh_get_method(struct uh_connection *con)
|
||||||
{
|
{
|
||||||
return con->parser.method;
|
return con->parser.method;
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *uh_get_method_str(struct uh_connection *con)
|
inline const char *uh_get_method_str(struct uh_connection *con)
|
||||||
{
|
{
|
||||||
return http_method_str(con->parser.method);
|
return http_method_str(con->parser.method);
|
||||||
}
|
}
|
||||||
|
@ -592,7 +592,7 @@ inline struct uh_str *uh_get_query(struct uh_connection *con)
|
||||||
return &con->req.query;
|
return &con->req.query;
|
||||||
}
|
}
|
||||||
|
|
||||||
int uh_get_con_sock(struct uh_connection *con)
|
inline int uh_get_con_sock(struct uh_connection *con)
|
||||||
{
|
{
|
||||||
return con->sock;
|
return con->sock;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue