perl-AnyEvent-HTTPD-SendMultiHeaderPatch-0.001003-alt2.noarch.rpm


Advertisement

Description

perl-AnyEvent-HTTPD-SendMultiHeaderPatch - Patch (hack) of AnyEvent::HTTPD for sending multiple headers with the same field name

Distribution: ALT Linux Sisyphus
Repository: Autoimports noarch
Package name: perl-AnyEvent-HTTPD-SendMultiHeaderPatch
Package version: 0.001003
Package release: alt2
Package architecture: noarch
Package type: rpm
Installed size: 10.75 KB
Download size: 10.75 KB
Official Mirror: ftp.altlinux.org
use AnyEvent::HTTPD; # Optional, use AnyEvent::HTTPD::SendMultiHeaderPatch; sub { my($httpd, $req) = @_; $req->respond( 200, 'OK', { 'Set-Cookie' => "a=123; path=/; domain=.example.com\0b=456; path=/; domain=.example.com" }, "Set the cookies" ); } use AnyEvent::HTTPD::Util; sub { my($httpd, $req) = @_; my %%header; header_add(\%%header, 'Set-Cookie', 'a=123; path=/; domain=.example.com'); header_add(\%%header, 'Set-Cookie', 'b=456; path=/; domain=.example.com'); $req->respond(200, 'OK', \%%header, "Set the cookies"); } sub { my($httpd, $req) = @_; my %%header; header_add(\%%header, 'Example', 'a'); header_add(\%%header, 'Example', 'b'); my $example_values = header_gets(\%%header, 'Example'); my $no_values = header_gets(\%%header, 'None'); }

Alternatives

Provides

  • perl(AnyEvent/HTTPD/SendMultiHeaderPatch.pm) = 0.001.003
  • perl-AnyEvent-HTTPD-SendMultiHeaderPatch = 0.001003-alt2

    Install Howto

    1. Add the following line to /etc/apt/sources.list:
      rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
      rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
      
    2. Update the package index:
      # sudo apt-get update
    3. Install perl-AnyEvent-HTTPD-SendMultiHeaderPatch rpm package:
      # sudo apt-get install perl-AnyEvent-HTTPD-SendMultiHeaderPatch

    Files

    • /usr/share/doc/perl-AnyEvent-HTTPD-SendMultiHeaderPatch-0.001003/Changes
    • /usr/share/doc/perl-AnyEvent-HTTPD-SendMultiHeaderPatch-0.001003/README
    • /usr/share/perl5/AnyEvent/
    • /usr/share/perl5/AnyEvent/HTTPD/SendMultiHeaderPatch.pm
    Advertisement
    Advertisement