Skip to content

HttpServerRoutes.ws() javadoc is not in line with WebsocketInbound capabilities #191

Closed
@akiraly

Description

@akiraly

HttpServerRoutes.ws() says: Additional regex matching is available e.g. "/test/{param}". Params are resolved using HttpServerRequest.param(CharSequence). This is not correct (at least not this way).

  1. The ws() methods work with WebsocketInbound and not with HttpServerRequest.

  2. WebsocketInbound does not extend HttpServerRequest and does not have any of the param* methods that HttpServerRequest has.

  3. The implementation of WebsocketInbound: HttpServerWSOperations does have these methods because it inherits them from HttpServerOperations (which is also the implementation of HttpServerRequest).

So IMHO either this part should be removed from the ws() javadocs or the param* method declarations should be moved from HttpServerRequest to an interface which then could be extended by both HttpServerRequest and WebsocketInbound.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions