Skip to content

Remove version-specific prefixes from builder methods #3085

Closed
@seanmonstar

Description

@seanmonstar

With the split of the builders into per-version kinds (see #2842 and #2851), I feel there's a new question around whether we should remove the prefixes from the method names. They used to exist because the builders were combined over multiple HTTP versions, so the options were scoped to a version. But now:

mod http1 {
    impl Builder {
        pub fn http1_title_case_headers() {
            // ...
        }
    }
}

It seems all those can have the http1_ prefix removed, and same for the http2::Builders.

Noticed in hyperium/hyper-util#11 (comment).

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-clientArea: client.A-http1Area: HTTP/1 specific.A-http2Area: HTTP/2 specific.A-serverArea: server.B-breaking-changeBlocked: this is an "API breaking change".C-featureCategory: feature. This is adding a new feature.E-easyEffort: easy. A task that would be a great starting point for a new contributor.

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions