Skip to content

"make_service_fn" - gone. Where is it? #3468

@ally9335

Description

@ally9335

Version
1.0

Platform
any

Description
there used to be the function hyper::service::make_service_fn

Now it's gone. There's no mention of it in the docs, no in the ChangeLog, nowhere. Where is it?

How to convert this into v1.0x?

    let sf = make_service_fn(|_connection| async {
        Ok::<_, Infallible>(service_fn(move |req| handle_post_req(req)))
    });

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bug. Something is wrong. This is bad!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions