Module: Ollama::Utils::Fetcher::HeaderExtension

Defined in:
lib/ollama/utils/fetcher.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#content_typeObject

Returns the value of attribute content_type.



10
11
12
# File 'lib/ollama/utils/fetcher.rb', line 10

def content_type
  @content_type
end

#exObject

Returns the value of attribute ex.



12
13
14
# File 'lib/ollama/utils/fetcher.rb', line 12

def ex
  @ex
end

Class Method Details

.failedObject



14
15
16
17
18
# File 'lib/ollama/utils/fetcher.rb', line 14

def self.failed
  object = StringIO.new.extend(self)
  object.content_type = MIME::Types['text/plain'].first
  object
end