;
};
has '+persistent_headers' => (
default => sub {
return { Accept => 'application/json' };
},
);
sub _error_handler ($self, $res) {
if (ref $res->data eq 'HASH') {
if
/json application/vnd.yang.data+json}],
default => sub { 'application/json' },
);
our %modules = (
'application/json' => {
module => 'JSON',
},
'application/vnd.yang.data+json
' => {
module => 'JSON',
},
);
has '+serializer' => (
default => \&_set_serializer,
);
sub _set_serializer ($self) {
return unless $modules{$self->type};
my $module = $modul