|0 APREQ_CHARSET_ASCII (7-bit us-ascii)|
|1 APREQ_CHARSET_LATIN1 (8-bit iso-8859-1)|
|2 APREQ_CHARSET_CP1252 (8-bit Windows-1252)|
|8 APREQ_CHARSET_UTF8 (utf8 encoded Unicode)|
$charset = $param->charset;
ok $param->charset == 2;
APR::Request::Param->make($pool, $name, $value)
Fast XS param constructor.
Get/set the APR::Table headers for this param.
Get/set the APR::Brigade file-upload content for this param.
Returns the client-side filename associated with this param.
Links the file-upload content with the local file named $path. Creates a hard-link if the spoolfiles (see upload_tempname) temporary directory is on the same device as $path; otherwise this writes a copy.
Reads the entire file-upload content into $data.
Returns the size of the params file-upload content.
Returns the MIME-type of the params file-upload content.
Returns the name of the local spoolfile for this param.
Returns a seekable filehandle representing the file-upload content.
This class is derived from APR::Brigade, providing additional methods for TIEHANDLE, READ and READLINE. To be memory efficient, these methods delete buckets from the brigade as soon as their data is actually read, so you cannot seek on handles tied to this class. Such handles have semantics similar to that of a read-only socket.
Creates a copy of the bucket brigade represented by $bb, and blesses that copy into the APR::Request::Brigade class. This provides syntactic sugar for using perls builtin read, readline, and <> operations on handles tied to this package:
$bb->READ($contents) $bb->READ($contents, $length) $bb->READ($contents, $length, $offset)
Reads data from the brigade $bb into $contents. When omitted $length defaults to -1, which reads the first bucket into $contents. A positive $length will read in $length bytes, or the remainder of the brigade, whichever is greater. $offset represents the index in $context to read the new data.
Returns the first line of data from the bride. Lines are terminated by linefeeds (the \012 character), but we may eventually use $/ instead.
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.
|perl v5.20.3||PARAM (3)||2016-04-14|