- my ($self, $code, $res_hdr, $next_cb, $eml_cb) = @_;
- my $env = $self->{env};
- $self->{gz} //= gz_or_noop($res_hdr, $env);
- if ($env->{'pi-httpd.async'}) {
- $self->{async_next} = $next_cb;
- $self->{async_eml} = $eml_cb;
- my $http = $env->{'psgix.io'}; # PublicInbox::HTTP
+ # $code may be an HTTP response code (e.g. 200) or a CODE ref (mbox_hdr)
+ my ($self, $code, $res_hdr) = @_;
+ if ($self->{env}->{'pi-httpd.async'}) {
+ my $http = $self->{env}->{'psgix.io'}; # PublicInbox::HTTP