| 1 | package Linux::Event::HTTP::_NativeBridge; | ||||||||||
| 2 | 7 | ▶ | use v5.36; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 7 | ▶ | use Linux::Event::HTTP (); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 7 | ▶ | use Unblock::HTTP1::NativeABI 0.13 (); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 7 | require XSLoader; | |||||||||
| 6 | 7 | XSLoader::load(__PACKAGE__, $Linux::Event::HTTP::VERSION); | |||||||||
| 7 | |||||||||||
| 8 | 7 | ▶ | sub definition { | ||||||||
|
Subroutine
definition: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 9 | 7 | return { provider => \&_operations_address, | |||||||||
| 10 | abi_version => 1, operations_address => _operations_address() }; | ||||||||||
| 11 | } | ||||||||||
| 12 | |||||||||||
| 13 | 26 | ▶ | sub _input_operations_address ($engine) { | ||||||||
|
Subroutine
_input_operations_address: called CC=3 SCAR=13.3
| |||||||||||
| 14 | 26 | ▶ | if ($engine->isa('Unblock::HTTP2::_Connection')) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 15 | 0 | require Unblock::HTTP2::NativeABI; | |||||||||
| 16 | 0 | return (2, Unblock::HTTP2::NativeABI::definition()->{operations_address}); | |||||||||
| 17 | } | ||||||||||
| 18 | 26 | ▶ | die 'unsupported HTTP native engine' unless $engine->isa('Unblock::HTTP1::_Engine'); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 19 | 26 | return (1, Unblock::HTTP1::NativeABI::definition()->{operations_address}); | |||||||||
| 20 | } | ||||||||||
| 21 | |||||||||||
| 22 | 7 | 1; | |||||||||