generate functionWed, 01 Mar 2023
get content_type type from url
require 'net/http' uri = URI.parse('http://www.rubyinside.com/test.txt') Net::HTTP.start(uri.host, uri.port) do |http| response = http.get(uri.path) puts response['Content-Type'] end
Ruby
Generate More