Class: Poke::Commands::Curl

Inherits:
Poke::Command show all
Defined in:
lib/poke/commands/curl.rb

Constant Summary collapse

WRITE_OUT_FIELDS =
{
  'response_code' => ->(e) { e },
  'size_download' => ->(e) { format('%.2fkB', (e / 1000)) },
  'time_appconnect' => ->(e) { format('%.2fms', (e * 1000)) },
  'time_connect' => ->(e) { format('%.2fms', (e * 1000)) },
  'time_namelookup' => ->(e) { format('%.2fms', (e * 1000)) },
  'time_pretransfer' => ->(e) { format('%.2fms', (e * 1000)) },
  'time_redirect' => ->(e) { format('%.2fms', (e * 1000)) },
  'time_starttransfer' => ->(e) { format('%.2fms', (e * 1000)) },
  'time_total' => ->(e) { format('%.2fms', (e * 1000)) }
}.freeze

Method Summary

Methods inherited from Poke::Command

#execute, #initialize

Constructor Details

This class inherits a constructor from Poke::Command