unless $token; my $url = 'http://www.example.com/api?token=' . $token; my $res = request($url); return Failure->new($res->code) if $res->is_error; return Success->new($res->content); } ࣄલ݅Λຬͨͯ͠ͳ͍ͷͰྫ֎ ޭͨ͠Β4VDDFTTΦϒδΣΫτ ৽͍ؔ͠ͷ༷ʹج͍࣮ͨ ࣦഊͨ͠Β'BJMVSFΦϒδΣΫτ τʔΫϯΛड͚औΓ
HTTPϦΫΤετͯ͠ ޭ͢ΕಘΒΕͨ༰Λฦ͢/ࣦഊ͢ΕΤϥʔͷछྨΛฦ͢