search for: http_status

Displaying 2 results from an estimated 2 matches for "http_status".

Did you mean: httpd_status
2006 May 05
0
summarize: A log analysis script
...or :debug) # # # urls keep proto://host bit? FULL_URL = false STDIN.read.split(/^\s*$/).each do |s| next if s !~ /^Processing.+Completed/m ip, time = s.match(/\(for (.+?) at (.+?)\)/)[1..-1] #puts s final_time, reqs_per_sec = s.match(/Completed in (\S+?) \((\S+?) reqs\/sec\)/)[1..-1] http_status, url = s.match(/\| (\d+) \w+ \[(.+?)\]$/)[1..-1] render_time, render_perc = s =~ /200 OK/ ? s.match(/Rendering: (\S+?) \((\d+)/)[1..-1] : [ ''0.0--00'', ''0'' ] db_time, db_perc = s =~ /DB: / ? s.match(/DB: (\S+) \((\d+)/)[1..-1] : [ ...
2018 Jan 02
1
httr::content without message
Thanks to all that replied. I had just looked through the httr code and sure enough for a .csv mime time it calls readr::read_csv(). The httr::content docs suggest not using automatic parsing in a package, rather to determine mime type and parse yourself and Ben's suggestion also works if I do: junk <- readr::read_csv(r1$content, col_types = cols()) Perfect. Using httr rather than