HTTP-Proxy-Selective

 view release on metacpan or  search on metacpan

lib/HTTP/Proxy/Selective.pm  view on Meta::CPAN

    mopcrt => "chemical/x-mopac-input",
    mpc => "chemical/x-mopac-input",
    dat => "chemical/x-mopac-input",
    zmt => "chemical/x-mopac-input",
    moo => "chemical/x-mopac-out",
    mvb => "chemical/x-mopac-vib",
    asn => "chemical/x-ncbi-asn1",
    prt => "chemical/x-ncbi-asn1-ascii",
    ent => "chemical/x-ncbi-asn1-ascii",
    val => "chemical/x-ncbi-asn1-binary",
    aso => "chemical/x-ncbi-asn1-binary",
    asn => "chemical/x-ncbi-asn1-spec",
    pdb => "chemical/x-pdb",
    ent => "chemical/x-pdb",
    ros => "chemical/x-rosdal",
    sw => "chemical/x-swissprot",
    vms => "chemical/x-vamas-iso14976",
    vmd => "chemical/x-vmd",
    xtel => "chemical/x-xtel",
    xyz => "chemical/x-xyz",
    gif => "image/gif",
    ief => "image/ief",
    jpeg => "image/jpeg",
    jpg => "image/jpeg",
    jpe => "image/jpeg",
    pcx => "image/pcx",
    png => "image/png",
    svg => "image/svg+xml",
    svgz => "image/svg+xml",
    tiff => "image/tiff",
    tif => "image/tiff",
    djvu => "image/vnd.djvu",
    djv => "image/vnd.djvu",
    wbmp => "image/vnd.wap.wbmp",
    ras => "image/x-cmu-raster",
    cdr => "image/x-coreldraw",
    pat => "image/x-coreldrawpattern",
    cdt => "image/x-coreldrawtemplate",
    cpt => "image/x-corelphotopaint",
    ico => "image/x-icon",
    art => "image/x-jg",
    jng => "image/x-jng",
    bmp => "image/x-ms-bmp",
    psd => "image/x-photoshop",
    pnm => "image/x-portable-anymap",
    pbm => "image/x-portable-bitmap",
    pgm => "image/x-portable-graymap",
    ppm => "image/x-portable-pixmap",
    rgb => "image/x-rgb",
    xbm => "image/x-xbitmap",
    xpm => "image/x-xpixmap",
    xwd => "image/x-xwindowdump",
    eml => "message/rfc822",
    igs => "model/iges",
    iges => "model/iges",
    msh => "model/mesh",
    mesh => "model/mesh",
    silo => "model/mesh",
    wrl => "model/vrml",
    vrml => "model/vrml",
    ics => "text/calendar",
    icz => "text/calendar",
    css => "text/css",
    csv => "text/csv",
    323 => "text/h323",
    html => "text/html",
    htm => "text/html",
    shtml => "text/html",
    uls => "text/iuls",
    mml => "text/mathml",
    asc => "text/plain",
    txt => "text/plain",
    text => "text/plain",
    pot => "text/plain",
    rtx => "text/richtext",
    sct => "text/scriptlet",
    wsc => "text/scriptlet",
    tm => "text/texmacs",
    ts => "text/texmacs",
    tsv => "text/tab-separated-values",
    jad => "text/vnd.sun.j2me.app-descriptor",
    wml => "text/vnd.wap.wml",
    wmls => "text/vnd.wap.wmlscript",
    bib => "text/x-bibtex",
    boo => "text/x-boo",
    'h++' => "text/x-c++hdr",
    hpp => "text/x-c++hdr",
    hxx => "text/x-c++hdr",
    hh => "text/x-c++hdr",
    'c++' => "text/x-c++src",
    cpp => "text/x-c++src",
    cxx => "text/x-c++src",
    cc => "text/x-c++src",
    h => "text/x-chdr",
    htc => "text/x-component",
    csh => "text/x-csh",
    c => "text/x-csrc",
    d => "text/x-dsrc",
    diff => "text/x-diff",
    patch => "text/x-diff",
    hs => "text/x-haskell",
    java => "text/x-java",
    lhs => "text/x-literate-haskell",
    moc => "text/x-moc",
    p => "text/x-pascal",
    pas => "text/x-pascal",
    gcd => "text/x-pcs-gcd",
    pl => "text/x-perl",
    pm => "text/x-perl",
    py => "text/x-python",
    etx => "text/x-setext",
    sh => "text/x-sh",
    tcl => "text/x-tcl",
    tk => "text/x-tcl",
    tex => "text/x-tex",
    ltx => "text/x-tex",
    sty => "text/x-tex",
    cls => "text/x-tex",
    vcs => "text/x-vcalendar",
    vcf => "text/x-vcard",
    '3gp' => "video/3gpp",
    dl => "video/dl",
    dif => "video/dv",
    dv => "video/dv",
    fli => "video/fli",
    gl => "video/gl",
    mpeg => "video/mpeg",
    mpg => "video/mpeg",
    mpe => "video/mpeg",
    mp4 => "video/mp4",
    ogv => "video/ogg",
    qt => "video/quicktime",
    mov => "video/quicktime",
    mxu => "video/vnd.mpegurl",
    lsf => "video/x-la-asf",
    lsx => "video/x-la-asf",
    mng => "video/x-mng",
    asf => "video/x-ms-asf",
    asx => "video/x-ms-asf",
    wm => "video/x-ms-wm",
    wmv => "video/x-ms-wmv",
    wmx => "video/x-ms-wmx",
    wvx => "video/x-ms-wvx",
    avi => "video/x-msvideo",
    movie => "video/x-sgi-movie",
    ice => "x-conference/x-cooltalk",
    sisx => "x-epoc/x-sisx-app",
    vrm => "x-world/x-vrml",
    vrml => "x-world/x-vrml",
    wrl => "x-world/x-vrml",
)}

1;

__END__

=head1 NAME

HTTP::Proxy::Selective - Simple HTTP Proxy which serves some paths from locations on local disk.
    
=head1 SYNOPSIS

    use HTTP::Proxy;
    use HTTP::Proxy::Selective;
    my $filter = {
        'www.example.com' => {
            'css/' => '/home/t0m/example/css',
            'js'   => '/home/t0m/example/js',
        },
    };
    my $proxy = HTTP::Proxy->new();
    $proxy->push_filter( 
        method => 'GET, HEAD',
        request => HTTP::Proxy::Selective->new($filter)
    );
    $proxy->start;


See the script shipped in the distribution C<selective_proxy> for a slightly more complex example of use.



( run in 2.368 seconds using v1.01-cache-2.11-cpan-39bf76dae61 )