GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
JSON::Validator::URI(3) User Contributed Perl Documentation JSON::Validator::URI(3)

JSON::Validator::URI - Uniform Resource Identifier

  use JSON::Validator::URI;

  my $urn = JSON::Validator::URI->new('urn:uuid:ee564b8a-7a87-4125-8c96-e9f123d6766f');
  my $url = JSON::Validator::URI->new('/foo');
  my $url = JSON::Validator::URI->new('https://mojolicious.org');

JSON::Validator::URI is a class for presenting both URL and URN.

This class is currently EXPERIMENTAL.

  $uri = uri;
  $uri = uri $orig, $base;

Returns a new JSON::Validator::URI object from $orig and $base. Both variables can be either a string or a JSON::Validator::URI object.

JSON::Validator::URI inherits all attributes from Mojo::URL and implements the following ones.

  $str = $uri->nid;

Returns the NID part of a URN. Example "uuid" or "iban".

  $str = $uri->nss;

Returns the NSS part of a URN. Example "6e8bc430-9c3a-11d9-9669-0800200c9a66".

JSON::Validator::URI inherits all methods from Mojo::URL and implements the following ones.

  $str = $uri->from_data($data);

This method will generate a URN for $data. $data will be serialized using "encode_json" in Mojo::JSON before being used to generate an UUIDv5.

This method is EXPERIMENTAL and subject to change!

See "parse" in Mojo::URL.

See "to_abs" in Mojo::URL.

See "to_string" in Mojo::URL.

See "to_unsafe_string" in Mojo::URL.

JSON::Validator.
2021-10-02 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.