Skip to content

tokuhirom/URL-Builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NAME

URL::Builder - Tiny URL builder

SYNOPSIS

use URL::Builder;

say build_url(
    base_uri => 'http://api.example.com/',
    path => '/v1/entries',
    query => [
        id => 3
    ]
);
# http://api.example.com/v1/entries?id=3

DESCRIPTION

URL::Builder is really simple URL string building library.

FUNCTIONS

  • build_url(%args)

    Build URL from the hash.

    Arguments:

    • base_uri: Str
    • path: Str
    • query: ArrayRef[Str]|HashRef[Str]
  • build_url_utf8(%args)

    Same as build_url, but this function encode decoded string as UTF-8 automatically.

LICENSE

Copyright (C) Tokuhiro Matsuno.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

Tokuhiro Matsuno tokuhirom@gmail.com

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages