Skip to content

Documentation doesn't explain that path and query are omitted from the call to call #2476

@nikclayton-dfinity

Description

@nikclayton-dfinity

[Note: Verified on 13.10, haven't been able to try with 14.x yet]

When implementing a https://docs.rs/hyper/0.13.10/hyper/client/connect/index.html the documentation says:

A "connector" is a Service that takes a Uri destination, and its Response is some type implementing AsyncRead, AsyncWrite, and Connection.

This is a bit misleading -- specifically, the Uri that it receives is not the Uri that the request is for -- the path and query part appear to be stripped, leaving just the schema and the authority.

I think this is because, for connection pooling, only the scheme and authority are considered as part of the hash key.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-clientArea: client.A-docsArea: documentation.E-easyEffort: easy. A task that would be a great starting point for a new contributor.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions