Net::HTTP2::Response - HTTP/2 Response
This class represents an HTTP/2 response.
Returns the response payload, or undef if the payload was delivered to an on_data handler. (See Net::HTTP2::Client’s request() method.)
on_data
request()
Returns the (numeric) HTTP statis.
(NB: HTTP/2 doesn’t have response status strings as HTTP/1 has.)
Returns a boolean that indicates whether the response indicates success.
Returns a hash reference similar to that in HTTP::Tiny::UA::Response’s method of the same name.
To install Net::HTTP2, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::HTTP2
CPAN shell
perl -MCPAN -e shell install Net::HTTP2
For more information on module installation, please visit the detailed CPAN module installation guide.