Net::HTTP::NB - Online Linux Manual PageSection : 3
Updated : 2022-01-24
Source : perl v5.34.0
Note : User Contributed Perl Documentation

NAMENet::HTTP::NB − Non−blocking HTTP client

VERSIONversion 6.22

SYNOPSIS​ use Net::HTTP::NB; ​ my $s = Net::HTTP::NB−>new(Host => "www.perl.com") || die $@; ​ $s−>write_request(GET => "/"); ​ ​ use IO::Select; ​ my $sel = IO::Select−>new($s); ​ ​ READ_HEADER: { ​ die "Header timeout" unless $sel−>can_read(10); ​ my($code, $mess, %h) = $s−>read_response_headers; ​ redo READ_HEADER unless $code; ​ } ​ ​ while(1) { ​ die "Body timeout" unless $sel−>can_read(10); ​ my $buf; ​ my $n = $s−>read_entity_body($buf, 1024); ​ last unless $n; ​ print $buf; ​ }

DESCRIPTIONSame interface as Net::HTTP but it will never try multiple reads when the read_response_headers() or read_entity_body() methods are invoked. This make it possible to multiplex multiple Net::HTTP::NB using select without risk blocking. If read_response_headers() did not see enough data to complete the headers an empty list is returned. If read_entity_body() did not see new entity data in its read the value −1 is returned.

SEE ALSONet::HTTP

AUTHORGisle Aas <gisle@activestate.com>

COPYRIGHT AND LICENSEThis software is copyright (c) 2001 by Gisle Aas. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
0
Johanes Gumabo
Data Size   :   5,781 byte
man-Net::HTTP::NB.3pmBuild   :   2024-12-29, 07:25   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   3 / 255,801
Visitor ID   :     :  
Visitor IP   :   3.145.62.46   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.29
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (parse_manual_page_|252|Net::HTTP::NB.3pm|36/37|el══─{─══.|.el══─{─══. ds -- \|\(em\| )         (htmlprn|149|Net::HTTP::NB.3pm|36/37|.el══─{─══. ds --  —  |.el══─{─══. ds -- \|\(em\| )         (parse_manual_page_|252|Net::HTTP::NB.3pm|43|br══─}─══|'br══─}─══ )         (htmlprn|149|Net::HTTP::NB.3pm|43|'br══─}─══ |'br══─}─══ )