diff --git a/CONTRIBUTORS b/CONTRIBUTORS deleted file mode 100644 index 903cdb1..0000000 --- a/CONTRIBUTORS +++ /dev/null @@ -1,17 +0,0 @@ - -# HTTP-TINY-MULTIPART CONTRIBUTORS # - -This is the (likely incomplete) list of people who have helped -make this distribution what it is, either via code contributions, -patches, bug reports, help with troubleshooting, etc. A huge -'thank you' to all of them. - - * Aran Deltac - * Mark Glines - * Mohammad S Anwar - * Renee Baecker - * reneeb - * Renee - * Stephen Thirlwall - - diff --git a/MANIFEST b/MANIFEST index 9719f56..8c3ed4b 100644 --- a/MANIFEST +++ b/MANIFEST @@ -1,11 +1,11 @@ -# This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.010. -CONTRIBUTORS +# This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.025. Changes LICENSE MANIFEST META.json META.yml Makefile.PL +README dist.ini lib/HTTP/Tiny/Multipart.pm t/01_base.t diff --git a/META.json b/META.json index 225b51c..925d566 100644 --- a/META.json +++ b/META.json @@ -4,7 +4,7 @@ "Renee Baecker " ], "dynamic_config" : 0, - "generated_by" : "Dist::Zilla version 6.010, CPAN::Meta::Converter version 2.150005", + "generated_by" : "Dist::Zilla version 6.025, CPAN::Meta::Converter version 2.150010", "license" : [ "artistic_2" ], @@ -54,15 +54,8 @@ } }, "version" : "0.08", - "x_contributors" : [ - "Aran Deltac ", - "Mark Glines ", - "Mohammad S Anwar ", - "Renee Baecker ", - "reneeb ", - "Renee ", - "Stephen Thirlwall " - ], - "x_serialization_backend" : "Cpanel::JSON::XS version 4.02" + "x_generated_by_perl" : "v5.36.0", + "x_serialization_backend" : "Cpanel::JSON::XS version 4.32", + "x_spdx_expression" : "Artistic-2.0" } diff --git a/META.yml b/META.yml index b07c30e..d8b234a 100644 --- a/META.yml +++ b/META.yml @@ -6,7 +6,7 @@ configure_requires: ExtUtils::MakeMaker: '0' dynamic_config: 0 -generated_by: 'Dist::Zilla version 6.010, CPAN::Meta::Converter version 2.150005' +generated_by: 'Dist::Zilla version 6.025, CPAN::Meta::Converter version 2.150010' license: artistic_2 meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html @@ -26,12 +26,6 @@ homepage: http://github.com/reneeb/HTTP-Tiny-Multipart repository: http://github.com/reneeb/HTTP-Tiny-Multipart.git version: '0.08' -x_contributors: - - 'Aran Deltac ' - - 'Mark Glines ' - - 'Mohammad S Anwar ' - - 'Renee Baecker ' - - 'reneeb ' - - 'Renee ' - - 'Stephen Thirlwall ' -x_serialization_backend: 'YAML::Tiny version 1.69' +x_generated_by_perl: v5.36.0 +x_serialization_backend: 'YAML::Tiny version 1.73' +x_spdx_expression: Artistic-2.0 diff --git a/Makefile.PL b/Makefile.PL index 5f662f6..5b88923 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,4 +1,4 @@ -# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.010. +# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.025. use strict; use warnings; diff --git a/README b/README new file mode 100644 index 0000000..d001e9e --- /dev/null +++ b/README @@ -0,0 +1,99 @@ +NAME + + HTTP::Tiny::Multipart - Add post_multipart to HTTP::Tiny + +VERSION + + version 0.08 + +SYNOPSIS + + use HTTP::Tiny; + use HTTP::Tiny::Multipart; + + my $http = HTTP::Tiny->new; + + my $content = "This is a test"; + + my $response = $http->post_multipart( 'http://localhost:3000/', { + file => { + filename => 'test.txt', + content => $content, + } + } ); + + creates this request + + POST / HTTP/1.1 + Content-Length: 104 + User-Agent: HTTP-Tiny/0.025 + Content-Type: multipart/form-data; boundary=go7DX + Connection: close + Host: localhost:3000 + + --go7DX + Content-Disposition: form-data; name="file"; filename="test.txt" + + This is a test + --go7DX-- + + And + + use HTTP::Tiny; + use HTTP::Tiny::Multipart; + + my $http = HTTP::Tiny->new; + + my $content = "This is a test"; + + my $response = $http->post_multipart( 'http://localhost:3000/', { + file => { + filename => 'test.txt', + content => $content, + content_type => 'text/plain', + }, + testfield => 'test' + } ); + + creates + + POST / HTTP/1.1 + Content-Length: 104 + User-Agent: HTTP-Tiny/0.025 + Content-Type: multipart/form-data; boundary=go7DX + Connection: close + Host: localhost:3000 + + --go7DX + Content-Disposition: form-data; name="file"; filename="test.txt" + Content-Type: text/plain + + This is a test + --go7DX + Content-Disposition: form-data; name="testfield" + + test + --go7DX-- + +CONTRIBUTORS + + * Stephen Thirlwall + + * Markvy + + * Infinoid + + * Mohammad S Anwar + +AUTHOR + + Renee Baecker + +COPYRIGHT AND LICENSE + + This software is Copyright (c) 2018 by Renee Baecker. + + This is free software, licensed under: + + The Artistic License 2.0 (GPL Compatible) + diff --git a/debian/changelog b/debian/changelog index e5e080f..4f5afa6 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +libhttp-tiny-multipart-perl (0.08+git20180501.1.3fdc709-1) UNRELEASED; urgency=low + + * New upstream snapshot. + + -- Debian Janitor Fri, 20 Jan 2023 01:40:11 -0000 + libhttp-tiny-multipart-perl (0.08-2) unstable; urgency=medium [ gregor herrmann ] diff --git a/dist.ini b/dist.ini index b45dcc4..14cc5b9 100644 --- a/dist.ini +++ b/dist.ini @@ -23,6 +23,9 @@ [MetaProvides::Package] [ReadmeAnyFromPod / MarkdownInRoot] +phase = build + +[ReadmeAnyFromPod / TextInBuild] phase = build [GitHubREADME::Badge]