MATSUNO★Tokuhiro > HTTP-Body-Builder-0.03 > HTTP::Body::Builder::MultiPart

Download:
HTTP-Body-Builder-0.03.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Source  

NAME ^

HTTP::Body::Builder::MultiPart - multipart/form-data

SYNOPSIS ^

    use HTTP::Body::Builder::MultiPart;

    my $builder = HTTP::Body::Builder::MultiPart->new();
    $builder->add('x' => 'y');
    $builder->as_string;
    # => x=y

METHODS ^

my $builder = HTTP::Body::Builder::MultiPart->new()

Create new instance of HTTP::Body::Builder::MultiPart.

$builder->add_content($key => $value);

Add new parameter in raw string.

$builder->add_file($key => $real_file_name);

Add $real_file_name as $key.

$builder->as_string();

Generate body as string.

$builder->write_file($filename);

Write the content to $filename.

syntax highlighting: