Help for this page

Select Code to Download


  1. or download this
    # Server
    plackup -MYAML -e 'sub { warn Dump(+shift), $/; [ 200, [], [ "OHAI" ]]
    + }'
    HTTP::Server::PSGI: Accepting connections at http://0:5000/
    
  2. or download this
    # Client
    use 5.16.2;
    ...
            printf "%12s -> %s\n", $method, $uri->$method;
        }
    }