Public Instance methods
send_request_to_parser(request)
[show source]
# File lib/httpx/plugins/expect.rb 78 def send_request_to_parser(request) 79 super 80 81 return unless request.headers["expect"] == "100-continue" 82 83 expect_timeout = request.options.expect_timeout 84 85 return if expect_timeout.nil? || expect_timeout.infinite? 86 87 set_request_timeout(request, expect_timeout, :expect, %i[body response]) do 88 # expect timeout expired 89 if request.state == :expect && !request.expects? 90 Expect.no_expect_store << request.origin 91 request.headers.delete("expect") 92 consume 93 end 94 end 95 end