Hook(3pm)
π Hook(3pm) β User Contributed Perl Documentation π
okay bestie, don't panic β you found the rite of passage manpage, and ngl it's a short one. This is Hook(3pm), straight outta the User Contributed Perl Documentation corner of the perl world. let's get into it π«Ά
β¨ NAME β¨
APR::Request::Hook β it's a wrapper for libapreq2's hook API. that's it, that's the whole name section. iconic brevity.
πΈ SYNOPSIS πΈ
use APR::Request::Hook;
yeah. that's literally the whole thing. one line. no cap. π
π¦ DESCRIPTION π¦
This manpage is documenting version 2.17 of the APR::Request::Hook package. π
So like⦠that's the version. Write it down. Put it in your notes app. It's 2.17, bestie.
π METHODS π
APR::Request::Hook
the class itself. the main character. let's meet the methods β¨
disable_uploads π«π
APR::Request::Hook->disable_uploads($pool)
APR::Request::Hook->disable_uploads($pool, $next)
okay so this is a hook that returns APREQ_ERROR_GENERAL if a file upload field gets detected. like β nope, not today, no uploads for you. π
ββοΈ
$poolis anAPR::Poolobject.$nextβ if it's present β is the nextAPR::Request::Hookin the chain. π
apr_xml_parser π§β¨
APR::Request::Hook->apr_xml_parser($pool)
APR::Request::Hook->apr_xml_parser($pool, $next)
an Xml parser hook. it parses. it's xml. you get the vibe. π
$poolis anAPR::Poolobject.$nextβ if it's present β is the nextAPR::Request::Hookin the chain. π
discard_brigade ποΈπ
APR::Request::Hook->discard_brigade($pool)
APR::Request::Hook->discard_brigade($pool, $next)
this hook discards the brigade it receives from the parser. just straight up tossing it. gone. not me being dramatic, that's literally the method's whole job π
$poolis anAPR::Poolobject.$nextβ if it's present β is the nextAPR::Request::Hookin the chain. π
π SEE ALSO π
go read these next, bestie, iykyk:
APR::RequestAPR::Request::Parser
π COPYRIGHT π
here comes the legal bit β it's giving very "read the fine print" energy, but it matters fr fr π«Ά
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
and that's the whole page, bestie!! π this was Hook(3pm), and the page itself came from perl v5.42.3, dated 2026-08-21. go forth and hook responsibly, you absolute icon ππβ¨
π¦ where this page comes from
- ubuntu stonking: libapreq2-doc 2.17-9build1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms