Group
Extension

Matches 1

Mojolicious-Plugin-XRD ( A/AK/AKRON/Mojolicious-Plugin-XRD-0.24.tar.gz, AKRON, 2022; MetaCPAN )
Mojolicious-Plugin-XRD/lib/Mojolicious/Plugin/XRD.pm ( view source; MetaCPAN )
,
#    cache    => ...,
#    chi      => ...
#  });
#
# - Add Acceptance for XRD and JRD and JSON as a header

# UserAgent name
my $UA_NAME = __PACKAGE__ . ' v' . $VERSION;

# UserAgent maxi
ugin, $mojo) = @_;

  # Add types
  for ($mojo->types) {
    $_->type(jrd => 'application/jrd+json');
    $_->type(xrd => 'application/xrd+xml');
  };

  my $reply_xrd = sub {
    my ($c, $xr
$c->respond_to(

      # JSON request
      json => sub { $c->render(
        status => $status,
        data   => $head_data // $xrd->to_json,
        format => 'json'
      )},

      # JRD

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.