NAME

Net::HTTP2::Response - HTTP/2 Response

DESCRIPTION

This class represents an HTTP/2 response.

METHODS

$str = OBJ->content()

Returns the response payload, or undef if the payload was delivered to an on_data handler. (See Net::HTTP2::Client’s request() method.)

$num = OBJ->status()

Returns the (numeric) HTTP statis.

(NB: HTTP/2 doesn’t have response status strings as HTTP/1 has.)

$yn = OBJ->success()

Returns a boolean that indicates whether the response indicates success.

$hr = OBJ->headers()

Returns a hash reference similar to that in HTTP::Tiny::UA::Response’s method of the same name.