You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Jan (Jira)" <ji...@apache.org> on 2020/07/30 15:55:00 UTC
[jira] [Comment Edited] (HTTPCLIENT-2101) Switch between HTTP 1.0
and HTTP 1.1 ...
[ https://issues.apache.org/jira/browse/HTTPCLIENT-2101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17168015#comment-17168015 ]
Jan edited comment on HTTPCLIENT-2101 at 7/30/20, 3:54 PM:
-----------------------------------------------------------
OK, then i was right with that - i was not 100% sure but maybe 99.7! ;)
My reason for that:
I developed a facade that uses 2 HTTP clients in background (you can select one of them, i don't mean both at the same time!):
- My one one (developed by with sockets, streams and so so)
- The HTTP client library from apache
It works similar to an "abstract factory" design pattern.
One of its interfaces defined that method ("design by constract"):
public interface HTTPConnectionInterface
{ public void setConnectionData(final String caServer, final int caPort, final boolean caIsSecure, inal Boolean caUseHTTP11); ... ... ... }
My self-developed HTTP-Client supports HTTP 1.0 and HTTP 1.1 - so that last parameter from `setConnectionData(...)` method is not useless for is.
But when i instantiate the Apache HTTP client with it, it will be use less.
Is there NO way the realize both methods with Apache HTTP client?
Maybe with a "hack" - doesn't play a role for me... maybe with a method overrride or proxy pattern or withever...?
Maybe my question is a lil bit special! ;) But thank you anyway!
With best regards from Switzerland,
Jan
was (Author: marti):
OK, then i was right with that - i was not 100% sure but maybe 99.7! ;)
My reason for that:
I developed a facade that uses 2 HTTP clients in background:
- My one one (developed by with sockets, streams and so so)
- The HTTP client library from apache
It works similar to an "abstract factory" design pattern.
One of its interfaces defined that method ("design by constract"):
public interface HTTPConnectionInterface {
public void setConnectionData(final String caServer, final int caPort, final boolean caIsSecure, inal Boolean caUseHTTP11);
...
...
...
}
My self-developed HTTP-Client supports HTTP 1.0 and HTTP 1.1 - so that last parameter from `setConnectionData(...)` method is not useless for is.
But when i instantiate the Apache HTTP client with it, it will be use less.
Is there NO way the realize both methods with Apache HTTP client?
Maybe with a "hack" - doesn't play a role for me... maybe with a method overrride or proxy pattern or withever...?
Maybe my question is a lil bit special! ;) But thank you anyway!
With best regards from Switzerland,
Jan
> Switch between HTTP 1.0 and HTTP 1.1 ...
> ----------------------------------------
>
> Key: HTTPCLIENT-2101
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-2101
> Project: HttpComponents HttpClient
> Issue Type: Improvement
> Components: HttpClient (classic)
> Affects Versions: 4.5.11
> Reporter: Jan
> Priority: Critical
>
> Is would be nice to be able to select that. So it seems, that is not supported - i at least searched the half internet - nothing found regarding my issue.
>
> Thank you for your feedbacks.
>
> Jan
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org