,
# 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