diff --git a/lib/libwebsockets.h b/lib/libwebsockets.h index f443d8f5..02c2397c 100644 --- a/lib/libwebsockets.h +++ b/lib/libwebsockets.h @@ -79,11 +79,6 @@ extern int libwebsocket_create_server(int port, extern int libwebsocket_write(struct libwebsocket *, unsigned char *buf, size_t len, enum libwebsocket_write_protocol protocol); -extern const char * -libwebsocket_get_uri(struct libwebsocket *wsi); - -extern const char * -libwebsocket_get_protocol(struct libwebsocket *wsi); extern int libwebsockets_serve_http_file(struct libwebsocket *wsi, const char * file, diff --git a/lib/parsers.c b/lib/parsers.c index c3696a74..430507e1 100644 --- a/lib/parsers.c +++ b/lib/parsers.c @@ -33,36 +33,6 @@ const struct lws_tokens lws_tokens[WSI_TOKEN_COUNT] = { { "\x0d\x0a", 2 }, }; -/** - * libwebsocket_get_uri() - Return the URI path being requested - * @wsi: Websocket instance - * - * The user code can find out the local path being opened from this - * call, it's valid on HTTP or established websocket connections. - * If the client opened the connection with "http://127.0.0.1/xyz/abc.d" - * then this call will return a pointer to "/xyz/abc.d" - */ - -const char * libwebsocket_get_uri(struct libwebsocket *wsi) -{ - return wsi->utf8_token[WSI_TOKEN_GET_URI].token; -} - -/** - * libwebsocket_get_protocol() - Return the list of protocols being requested - * @wsi: Websocket instance - * - * The user code can find out which protocols the client is asking to - * work with by calling this. It may return NULL if there was no - * protocol header specified. - */ - -const char * libwebsocket_get_protocol(struct libwebsocket *wsi) -{ - return wsi->utf8_token[WSI_TOKEN_PROTOCOL].token; -} - - int libwebsocket_parse(struct libwebsocket *wsi, unsigned char c) { int n;