Public Instance methods
fetch_response(request, selector, options)
[show source]
# File lib/httpx/plugins/expect.rb 99 def fetch_response(request, selector, options) 100 response = super 101 102 return unless response 103 104 if response.is_a?(Response) && response.status == 417 && request.headers.key?("expect") 105 response.close 106 request.headers.delete("expect") 107 request.transition(:idle) 108 send_request(request, selector, options) 109 return 110 end 111 112 response 113 end