Sha256: 1b2cf1ca1238e3c67438f2c748fece946bd00d0af8cfbdd6fd7e838e946e4401

Contents?: true

Size: 360 Bytes

Versions: 1

Compression:

Stored size: 360 Bytes

Contents

require "net/http"

module Tika
  module Endpoints

    PUT = Net::HTTP::Put
    GET = Net::HTTP::Get

    JSON = "application/json"
    TEXT = "text/plain"
    
    Endpoint = Struct.new(:request_method, :path, :response_format)

    GetTextEndpoint     = Endpoint.new(PUT, "/tika", TEXT)
    GetMetadataEndpoint = Endpoint.new(PUT, "/meta", JSON)

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tika-client-0.1.1 lib/tika/endpoints.rb