class Patron::Request

def buffer_size=(buffer_size)

Parameters:
  • buffer_size (Integer, nil) -- the desired buffer size, or `nil` for automatic buffer size
def buffer_size=(buffer_size)
  if buffer_size != nil && buffer_size.to_i < 1
    raise ArgumentError, "Buffer size must be a positive integer greater than 0 or nil"
  end
  @buffer_size = buffer_size != nil ? buffer_size.to_i : nil
end