• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

sergot/http-useragent: Web user agent class for Perl 6.

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

sergot/http-useragent

开源软件地址:

https://github.com/sergot/http-useragent

开源编程语言:

Raku 100.0%

开源软件介绍:

HTTP::UserAgent Build Status

Web user agent class for Perl 6.

Usage

use HTTP::UserAgent;

my $ua = HTTP::UserAgent.new;
$ua.timeout = 10;

my $response = $ua.get("URL");

if $response.is-success {
    say $response.content;
} else {
    die $response.status-line;
}

Installation

To install it using Zef (a module management tool bundled with Rakudo Star):

$ zef install HTTP::UserAgent

Testing

To run tests:

$ prove -e "perl6 -Ilib"

Documentation

Please see the documentation links listed below:

To-do List and Future Ideas

strikethrough text means done.

  • clean up
  • speed up

HTTP::UserAgent

  • HTTP Auth
  • let user set his own cookie jar
  • make getprint() return the code response
  • security fix - use File::Temp to create temporary cookie jar
  • use Promises
  • make SSL dependency as optional

HTTP::Cookies

  • path restriction

OpenSSL

  • fix NativeCall's int bug
  • make it work on more platforms

IO::Socket::SSL

  • make it work on more platforms
  • make SSL support more reliable
  • add throwing exception on failing SSL
  • more tests



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap