Group
Extension

Matches 3

Apache-Tika-Async ( C/CO/CORION/Apache-Tika-Async-0.11.tar.gz, CORION, 2022; MetaCPAN )
Apache-Tika-Async/lib/Apache/Tika/Async.pm ( view source; MetaCPAN )
package Apache::Tika::Async;
use strict;
use Moo 2;
use JSON::XS qw(decode_json);
use File::Temp 'tempfile';

our $VERSION = '0.11';

=head1 NAME

Apache::Tika::Async - connect to Apache Tika

=head1 
 @_;
    $line =~ m!"([^"]+)"!g;
}

sub get_meta {
    my( $self, $file )= @_;
    #return decode_json($self->fetch( filename => $file, type => 'meta' ));
    # Hacky CSV-to-hash decode :-/
    return
Apache-Tika-Async ( C/CO/CORION/Apache-Tika-Async-0.11.tar.gz, CORION, 2022; MetaCPAN )
Apache-Tika-Async/lib/Apache/Tika/Connection/Future.pm ( view source; MetaCPAN )
            "Content-Length" => $content_size,
                  "Accept"         => 'application/json,text/plain',
                  'Content-Type'   => 'application/octet-stream',
                  
Apache-Tika-Async ( C/CO/CORION/Apache-Tika-Async-0.11.tar.gz, CORION, 2022; MetaCPAN )
Apache-Tika-Async/lib/Apache/Tika/Connection.pm ( view source; MetaCPAN )
a::Connection;
use strict;
use Moo::Role;
use JSON::XS;
our $VERSION = '0.11';

sub decode_response {
    my( $self, $body ) = @_;

    return decode_json( $body );
}

sub process_response {
    my ( 
nd $code <= 209 ) {
        if ( defined $body and length $body ) {
            # Let's hope it's JSON
            $body = $self->decode_response($body)
                if $is_encoded;
            ret

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