Skip to content

4.12.0: error[E0599]: no method named h1_allow_half_closed found for struct HttpServiceBuilder<T, S, X, U> in the current scope #3832

@tessus

Description

@tessus

Expected Behavior

it should compile

Current Behavior

compile error:

error[E0599]: no method named `h1_allow_half_closed` found for struct `HttpServiceBuilder<T, S, X, U>` in the current scope

Possible Solution

downgrade to 4.11.0

Steps to Reproduce (for bugs)

  1. compile
                    let mut svc = HttpService::build()
                        .keep_alive(cfg.keep_alive)
                        .client_request_timeout(cfg.client_request_timeout)
                        .client_disconnect_timeout(cfg.client_disconnect_timeout)
                        .h1_allow_half_closed(cfg.h1_allow_half_closed)
                        .local_addr(addr);
  1. receceive error

Context

dependapot upgraded actix-web from 4.11.0 to 4.12.0 and the CI failed.
I tried to build manually and got above error as well.

Your Environment

  • Rust Version (I.e, output of rustc -V): rustc 1.91.0 (f8297e351 2025-10-28)
  • Actix Web Version: 4.12.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions