Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

Data::HAL::URI - URI wrapper

Configuration And Environment

       Requires no configuration files or environment variables.

perl v5.36.0                                       2022-08-28                                Data::HAL::URI(3pm)

Description

       This is a wrapper for URI objects.

Diagnostics

       None.

Interface

Composition
       None, but URI methods are delegated through the "uri" attribute.

   Constructors"new"

           my $u = Data::HAL::URI->new('http://example.com/something');

       Takes a string argument, returns a "Data::HAL::URI" object.

   Attributes"uri"

       Type "URI", required, readonly, can only be set from the "new" constructor.

       This attribute delegates all methods to URI except "as_string".

   Methods"as_string"

       Returns the original argument to the constructor if still equal to the "uri", where equality also takes
       CURIE expansion into account, or otherwise the "uri" as string.

       The unaltered behaviour is still available through the "uri" accessor, e.g.:

           $resource->relation->uri->as_string

   Exports
       None.

Name

       Data::HAL::URI - URI wrapper

Synopsis

           my $relation = $resource->relation->as_string;

Version

       This document describes Data::HAL::URI version 1.001

See Also