[HtmlUnit] [htmlunit:feature-requests] #146 Do not recreate host configuration per-request

RBRi via HtmlUnit-develop <[email protected]> Sun, 08 Mar 2020 18:14:18 -0000
Newsgroups gmane.comp.java.htmlunit.devel
Message-ID </p/htmlunit/feature-requests/146/e4957eb61b27bef2b5fba3d34dade9da5ffbed89.feature-requests@htmlunit.p.sourceforge.net>
This is a multi-part message in MIME format.
--===============4819392246938458437==
Content-Type: multipart/related;
 boundary="===============2142655238563845702=="

This is a multi-part message in MIME format.
--===============2142655238563845702==
Content-Type: multipart/alternative;
 boundary="===============3144322971142050717=="
MIME-Version: 1.0

--===============3144322971142050717==
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

- **status**: open --> closed
- **assigned_to**: RBRi
- **Group**:  --> 2.38.0



---

** [feature-requests:#146] Do not recreate host configuration per-request**

**Status:** closed
**Group:** 2.38.0
**Labels:** Interface Improvements (example) 
**Created:** Fri Jul 03, 2009 11:12 PM UTC by Daniel Radetsky
**Last Updated:** Sun Mar 08, 2020 06:12 PM UTC
**Owner:** RBRi


Currently, getResponse calls getHostConfiguration, which creates a new HostConfiguration and then modifies it based on the WebRequestSettings. Instead, the WebClient should have a member HostConfiguration, which it modifies based on the request settings. Optionally, the member configuration could be copied for getResponse and then modified for the request based on the request settings. This might be better, since:

1. Different concurrent requests could have different configurations.

2. If some part of the codebase expects that each request has its own HostConfiguration (are they modified, perhaps?), this expectation would not be disappointed.


---

Sent from sourceforge.net because [email protected] is subscribed to https://sourceforge.net/p/htmlunit/feature-requests/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/htmlunit/admin/feature-requests/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.
--===============3144322971142050717==
MIME-Version: 1.0
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: 7bit

<div class="markdown_content"><ul>
<li><strong>status</strong>: open --&gt; closed</li>
<li><strong>assigned_to</strong>: RBRi</li>
<li><strong>Group</strong>:  --&gt; 2.38.0</li>
</ul>
<hr/>
<p><strong> <a class="alink strikethrough" href="https://sourceforge.net/p/htmlunit/feature-requests/146/">[feature-requests:#146]</a> Do not recreate host configuration per-request</strong></p>
<p><strong>Status:</strong> closed<br/>
<strong>Group:</strong> 2.38.0<br/>
<strong>Labels:</strong> Interface Improvements (example) <br/>
<strong>Created:</strong> Fri Jul 03, 2009 11:12 PM UTC by Daniel Radetsky<br/>
<strong>Last Updated:</strong> Sun Mar 08, 2020 06:12 PM UTC<br/>
<strong>Owner:</strong> RBRi</p>
<p>Currently, getResponse calls getHostConfiguration, which creates a new HostConfiguration and then modifies it based on the WebRequestSettings. Instead, the WebClient should have a member HostConfiguration, which it modifies based on the request settings. Optionally, the member configuration could be copied for getResponse and then modified for the request based on the request settings. This might be better, since:</p>
<ol>
<li>
<p>Different concurrent requests could have different configurations.</p>
</li>
<li>
<p>If some part of the codebase expects that each request has its own HostConfiguration (are they modified, perhaps?), this expectation would not be disappointed.</p>
</li>
</ol>
<hr/>
<p>Sent from sourceforge.net because [email protected] is subscribed to <a href="https://sourceforge.net/p/htmlunit/feature-requests/">https://sourceforge.net/p/htmlunit/feature-requests/</a></p>
<p>To unsubscribe from further messages, a project admin can change settings at <a href="https://sourceforge.net/p/htmlunit/admin/feature-requests/options.">https://sourceforge.net/p/htmlunit/admin/feature-requests/options.</a>  Or, if this is a mailing list, you can unsubscribe from the mailing list.</p></div>
--===============3144322971142050717==--
--===============2142655238563845702==--


--===============4819392246938458437==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============4819392246938458437==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
HtmlUnit-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/htmlunit-develop

--===============4819392246938458437==--