using requires of core modules everywhere it is used

This commit is contained in:
HoneyryderChuck 2017-12-10 20:38:03 +00:00
parent 94cb9b63d9
commit 4a9714df3c
9 changed files with 14 additions and 3 deletions

View File

@ -1,8 +1,5 @@
# frozen_string_literal: true
require "socket"
require "timeout"
require "httpx/selector"
require "httpx/channel"

View File

@ -1,5 +1,7 @@
# frozen_string_literal: true
require "stringio"
require "tempfile"
require "fileutils"
require "forwardable"

View File

@ -1,5 +1,7 @@
# frozen_string_literal: true
require "thread"
module HTTPX
class Selector
#

View File

@ -1,5 +1,7 @@
# frozen_string_literal: true
require "timeout"
module HTTPX::Timeout
class Global < PerOperation

View File

@ -1,5 +1,7 @@
# frozen_string_literal: true
require "timeout"
module HTTPX::Timeout
class PerOperation < Null
KEEP_ALIVE_TIMEOUT = 5

View File

@ -1,5 +1,7 @@
# frozen_string_literal: true
require "forwardable"
module HTTPX::Transcoder
module Body
module_function

View File

@ -1,5 +1,7 @@
# frozen_string_literal: true
require "forwardable"
module HTTPX::Transcoder
module Chunker
module_function

View File

@ -1,5 +1,6 @@
# frozen_string_literal: true
require "forwardable"
require "http/form_data"
module HTTPX::Transcoder

View File

@ -1,5 +1,6 @@
# frozen_string_literal: true
require "forwardable"
require "json"
module HTTPX::Transcoder