Method: HTTPX::Channel#call

Defined in:
lib/httpx/channel.rb

#callObject



189
190
191
192
193
194
195
196
197
198
199
200
201
202
# File 'lib/httpx/channel.rb', line 189

def call
  @timeout = @timeout_threshold
  case @state
  when :closed
    return
  when :closing
    dwrite
    transition(:closed)
    emit(:close)
  when :open
    consume
  end
  nil
end