Method: HTTPX::Options#initialize_dup
- Defined in:
- lib/httpx/options.rb
#initialize_dup(other) ⇒ Object
151 152 153 154 155 156 157 158 159 160 |
# File 'lib/httpx/options.rb', line 151 def initialize_dup(other) self.headers = other.headers.dup self.ssl = other.ssl.dup self.request_class = other.request_class.dup self.response_class = other.response_class.dup self.headers_class = other.headers_class.dup self.request_body_class = other.request_body_class.dup self.response_body_class = other.response_body_class.dup self.connection_class = other.connection_class.dup end |