httpcomponents-client.git
23 months ago[HTTPCLIENT-2124] NullPointerException in MinimalHttpClient.doExecute(HttpHost, Class...
Gary Gregory [Sun, 25 Oct 2020 20:29:31 +0000 (16:29 -0400)] 
[HTTPCLIENT-2124] NullPointerException in MinimalHttpClient.doExecute(HttpHost, ClassicHttpRequest, HttpContext) (#261)

23 months agoHTTPCLIENT-2122: async client to throw `HTTP/2 tunneling not supported` protocol...
Oleg Kalnichevski [Thu, 22 Oct 2020 15:38:43 +0000 (17:38 +0200)] 
HTTPCLIENT-2122: async client to throw `HTTP/2 tunneling not supported` protocol exception in case of `force HTTP/2` version policy used along with request proxy routing

23 months agoHTTPCLIENT-2123: H2AsyncClientBuilder incorrectly adds last request interceptors...
Oleg Kalnichevski [Wed, 21 Oct 2020 17:39:05 +0000 (19:39 +0200)] 
HTTPCLIENT-2123: H2AsyncClientBuilder incorrectly adds last request interceptors to the head of the interceptor list

23 months agoHTTPCLIENT-2119: added missing system properties to HttpClientBuilder javadocs
Oleg Kalnichevski [Sat, 17 Oct 2020 10:07:36 +0000 (12:07 +0200)] 
HTTPCLIENT-2119: added missing system properties to HttpClientBuilder javadocs

23 months agoFix typo in enum
Varun Sivapalan [Tue, 6 Oct 2020 08:09:44 +0000 (10:09 +0200)] 
Fix typo in enum

23 months agoHTTPCLIENT-2118: Corrected PoolingHttpClientConnectionManager javadocs
Oleg Kalnichevski [Sat, 3 Oct 2020 10:12:58 +0000 (12:12 +0200)] 
HTTPCLIENT-2118: Corrected PoolingHttpClientConnectionManager javadocs

2 years agoRFC 3986 conformance: corrected handling of path segments by `URIUtils#normalizeSynta...
Oleg Kalnichevski [Sat, 19 Sep 2020 10:56:23 +0000 (12:56 +0200)] 
RFC 3986 conformance: corrected handling of path segments by `URIUtils#normalizeSyntax`; optimized path segment operations

2 years agoRFC 3986 conformance: revised and optimized `URIUtils#extractHost`
Oleg Kalnichevski [Thu, 17 Sep 2020 09:21:09 +0000 (11:21 +0200)] 
RFC 3986 conformance: revised and optimized `URIUtils#extractHost`

2 years agoReplaced deprecated URLEncodedUtils
Oleg Kalnichevski [Wed, 16 Sep 2020 15:17:44 +0000 (17:17 +0200)] 
Replaced deprecated URLEncodedUtils

2 years agoReplaced deprecated TokenParser
Oleg Kalnichevski [Wed, 16 Sep 2020 15:14:11 +0000 (17:14 +0200)] 
Replaced deprecated TokenParser

2 years agoUpgraded HttpCore dependency to version 5.1-beta1
Oleg Kalnichevski [Wed, 16 Sep 2020 14:58:52 +0000 (16:58 +0200)] 
Upgraded HttpCore dependency to version 5.1-beta1

2 years agoUse decimal numbers for endpoint/execution IDs
Michael Osipov [Tue, 18 Aug 2020 10:16:46 +0000 (12:16 +0200)] 
Use decimal numbers for endpoint/execution IDs

This closes #249

2 years agoHTTPCLIENT-2106: Added charset parameter for DigestScheme
Oleg Kalnichevski [Mon, 10 Aug 2020 13:28:44 +0000 (15:28 +0200)] 
HTTPCLIENT-2106: Added charset parameter for DigestScheme

2 years agoHTTPCLIENT-2103: ManagedHttpClientConnectionFactory provides a fluent builder
Carter Kozak [Tue, 4 Aug 2020 19:06:34 +0000 (15:06 -0400)] 
HTTPCLIENT-2103: ManagedHttpClientConnectionFactory provides a fluent builder

2 years agoFixed 'JdbcRowSetImpl is internal proprietary API and may be removed in a future...
Oleg Kalnichevski [Sat, 19 Sep 2020 11:06:32 +0000 (13:06 +0200)] 
Fixed 'JdbcRowSetImpl is internal proprietary API and may be removed in a future release' warning

2 years agoUpgraded HttpClient version to 5.0.3-SNAPSHOT
Oleg Kalnichevski [Sun, 27 Sep 2020 10:12:59 +0000 (12:12 +0200)] 
Upgraded HttpClient version to 5.0.3-SNAPSHOT

2 years agoUpdated release notes for HttpClient 5.0.2 release
Oleg Kalnichevski [Tue, 22 Sep 2020 09:00:46 +0000 (11:00 +0200)] 
Updated release notes for HttpClient 5.0.2 release

2 years agoMove public suffix list to generate-resources and apache-release profile
Michael Osipov [Mon, 21 Sep 2020 09:43:02 +0000 (11:43 +0200)] 
Move public suffix list to generate-resources and apache-release profile

2 years agoAdd project modules to dependency management
Michael Osipov [Mon, 21 Sep 2020 09:34:44 +0000 (11:34 +0200)] 
Add project modules to dependency management

2 years agoUnify JXR and Surefire report config
Michael Osipov [Mon, 21 Sep 2020 09:22:24 +0000 (11:22 +0200)] 
Unify JXR and Surefire report config

2 years agoUnify Javadoc report config
Michael Osipov [Mon, 21 Sep 2020 09:15:47 +0000 (11:15 +0200)] 
Unify Javadoc report config

2 years agoRemove plugin executions run by release already
Michael Osipov [Mon, 21 Sep 2020 09:07:50 +0000 (11:07 +0200)] 
Remove plugin executions run by release already

2 years agoRemove default config
Michael Osipov [Mon, 21 Sep 2020 09:03:08 +0000 (11:03 +0200)] 
Remove default config

2 years agoUpdate SCM URLs
Michael Osipov [Mon, 21 Sep 2020 08:58:51 +0000 (10:58 +0200)] 
Update SCM URLs

2 years agoUpgrade Parent to 12
Michael Osipov [Mon, 21 Sep 2020 08:56:49 +0000 (10:56 +0200)] 
Upgrade Parent to 12

Massively remove everything already present in the parent POM.

2 years agoReplace HTTP with HTTPS
Michael Osipov [Mon, 21 Sep 2020 08:51:10 +0000 (10:51 +0200)] 
Replace HTTP with HTTPS

2 years agoHTTPCLIENT-2116: Incorrect request message composition when routing requests via...
Oleg Kalnichevski [Wed, 16 Sep 2020 09:23:09 +0000 (11:23 +0200)] 
HTTPCLIENT-2116: Incorrect request message composition when routing requests via a proxy

2 years agoPoolingAsyncClientConnectionManager incorrectly emits Ping commands to HTTP/1.1 endpo...
滕杰1 [Mon, 14 Sep 2020 12:12:41 +0000 (20:12 +0800)] 
PoolingAsyncClientConnectionManager incorrectly emits Ping commands to HTTP/1.1 endpoints #255

2 years agoUpgraded HttpCore dependency to version 5.0.2
Oleg Kalnichevski [Mon, 14 Sep 2020 09:31:39 +0000 (11:31 +0200)] 
Upgraded HttpCore dependency to version 5.0.2

2 years agoHTTPCLIENT-2115: HttpAsyncClientBuilder and H2AsyncClientBuilder fail to take `replac...
Oleg Kalnichevski [Tue, 8 Sep 2020 14:30:08 +0000 (16:30 +0200)] 
HTTPCLIENT-2115: HttpAsyncClientBuilder and H2AsyncClientBuilder fail to take `replaceExecInterceptor()` into account

2 years agoHTTPCLIENT-2112: AbstractMultipartFormat respects ByteBuffer.arrayOffset (#253)
Carter Kozak [Fri, 28 Aug 2020 12:05:32 +0000 (08:05 -0400)] 
HTTPCLIENT-2112: AbstractMultipartFormat respects ByteBuffer.arrayOffset (#253)

2 years agoHTTPCLIENT-2109: Fix RequestConfig.Builder#setConnectionKeepAlive javadoc (#252)
Carter Kozak [Sun, 23 Aug 2020 15:50:21 +0000 (11:50 -0400)] 
HTTPCLIENT-2109: Fix RequestConfig.Builder#setConnectionKeepAlive javadoc (#252)

2 years agoHTTPCLIENT-2078: Log debug message when no credentials for given auth scope are found 251/head
Michael Osipov [Tue, 18 Aug 2020 19:31:25 +0000 (21:31 +0200)] 
HTTPCLIENT-2078: Log debug message when no credentials for given auth scope are found

This closes #251

2 years agoAvoid updating Content-Length header in a 304 response.
dirkhenselin [Tue, 18 Aug 2020 10:24:22 +0000 (12:24 +0200)] 
Avoid updating Content-Length header in a 304 response.

I observed the following problem: `Transfer-Encoding` and
`Content-Length` headers should be mutually exclusive and because I use
chunked transfer, the `Transfer-Encoding` header is set in the response
while the `Content-Length` header is not. In case of a 304 during a
revalidation, the header contains Content-Length=0. Probably a proxy is
responsible for this, just like the comment "Some well-known proxies
respond with Content-Length=0, when returning 304" in the method
CachedHttpResponseGenerator::addMissingContentLengthHeader is saying. In
CacheEntryUpdater::mergeHeaders the Content-Length=0 is merged into the
cached entry, but the cached entry contains also a `Transfer-Encoding`
header, so in the cached entry these headers aren't mutually exclusive
anymore. Because of the `Transfer-Encoding` header the method
CachedHttpResponseGenerator::addMissingContentLengthHeader isn't fixing
the `Content-Length` header and Content-Length=0 causes returning null
instead of the cached content. IMHO the `Content-Length` header should
not be merged into the cached response in case of a 304, at least if the
cached entry contains a `Transfer-Encoding` header.

2 years agoHTTPCLIENT-2107: Threadsafe PoolingHttpClientConnectionManager field volatile access
Carter Kozak [Mon, 10 Aug 2020 15:34:24 +0000 (11:34 -0400)] 
HTTPCLIENT-2107: Threadsafe PoolingHttpClientConnectionManager field volatile access

2 years agoHTTPCLIENT-2105: async clients incorrectly handle redirects of requests with enclosed...
Oleg Kalnichevski [Sun, 9 Aug 2020 17:13:18 +0000 (19:13 +0200)] 
HTTPCLIENT-2105: async clients incorrectly handle redirects of requests with enclosed entity

2 years agoUpgraded maven-download-plugin to version 1.6.0
Oleg Kalnichevski [Sat, 18 Jul 2020 13:50:01 +0000 (15:50 +0200)] 
Upgraded maven-download-plugin to version 1.6.0

2 years agoHTTPCLIENT-2100: incorrect handling of EXTENDED mode by MultipartEntityBuilder
Oleg Kalnichevski [Wed, 15 Jul 2020 09:47:57 +0000 (11:47 +0200)] 
HTTPCLIENT-2100: incorrect handling of EXTENDED mode by MultipartEntityBuilder

2 years agoHTTPCLIENT-2099, HTTPCLIENT-2091: SSLConnectionSocketFactory connect timeout fix... 242/head
Carter Kozak [Sat, 11 Jul 2020 15:18:42 +0000 (11:18 -0400)] 
HTTPCLIENT-2099, HTTPCLIENT-2091: SSLConnectionSocketFactory connect timeout fix (#241)

SSLConnectionSocketFactory no longer overrides the socket timeout
with the connect timeout when an unlimited socket timeout is
configured. This matches behavior of HTTPCLIENT-2091.

Note that in scenarios where SocketConfig sets an infinite timeout
and the RequestConfig sets a bounded timeout, this change results
in the connect-timeout no longer applying to the TLS handshake.
This behavior can be retained by setting the expected timeout in
the SocketConfig.

2 years agoDocument: Bug fix: BasicExpiresHandler is annotated as immutable but is
Gary Gregory [Fri, 10 Jul 2020 13:01:05 +0000 (09:01 -0400)] 
Document: Bug fix: BasicExpiresHandler is annotated as immutable but is
not. #240.

2 years agoBasicExpiresHandler is annotated as immutable but is not. (#240)
Gary Gregory [Fri, 10 Jul 2020 12:57:24 +0000 (08:57 -0400)] 
BasicExpiresHandler is annotated as immutable but is not. (#240)

2 years agoHTTPCLIENT-2096: Migrate instance loggers to static fields
Carter Kozak [Sun, 5 Jul 2020 17:28:48 +0000 (13:28 -0400)] 
HTTPCLIENT-2096: Migrate instance loggers to static fields

Note that this may change the origin of logging when classes
have been subclassed, as the logger origin will use the class
name that defined the logger where previously the subclass type
would be used. In scenarios where external libraries subclass
httpclient utilities this allows httpclient logging to maintain
the `org.apache.hc` prefix instead of inheriting arbitrary
subclass names.

Using some logging frameworks this may result in reduced churn
when httpclient components are created (new connections, for example)
because loggers are looked up once per class.

2 years agoAdd Automatic-Module-Name in manifest so Java9 modular applications can depend on...
Niels Basjes [Sat, 4 Jul 2020 13:38:27 +0000 (15:38 +0200)] 
Add Automatic-Module-Name in manifest so Java9 modular applications can depend on this library

2 years agoHTTPCLIENT-2097: Fix PoolingAsyncClientConnectionManager boxed primitive reference...
Carter Kozak [Sun, 5 Jul 2020 17:10:25 +0000 (13:10 -0400)] 
HTTPCLIENT-2097: Fix PoolingAsyncClientConnectionManager boxed primitive reference equality

2 years agoMultipartEntityBuilder#generateBoundary optimization (#233)
slisaasquatch [Sat, 4 Jul 2020 07:49:07 +0000 (00:49 -0700)] 
MultipartEntityBuilder#generateBoundary optimization (#233)

2 years agoHTTPCLIENT-2095: Use slf4j interpolation instead of string concatenation where possib...
Carter Kozak [Thu, 2 Jul 2020 15:51:43 +0000 (11:51 -0400)] 
HTTPCLIENT-2095: Use slf4j interpolation instead of string concatenation where possible (#232)

2 years agoHTTPCLIENT-2094: ConnectionManager validateAfterInactivity zero duration agreement
Carter Kozak [Wed, 1 Jul 2020 17:47:01 +0000 (13:47 -0400)] 
HTTPCLIENT-2094: ConnectionManager validateAfterInactivity zero duration agreement

Both connection managers agree on the meaning of a zero-duration
validateAfterInactivity value. Previously the documentation for
both suggested that zero resulted in no validation, however
the classic client would validate prior to each request and
the async client would never validate.
This commit standardizes behavior on the classic client, which
is consistent with hc4.x, allowing zero to force validation prior
to every request.

2 years agoRFC 7235 compliance, HTTPCLIENT-2086: fixed parsing of token68 based (base64-encoded...
Oleg Kalnichevski [Wed, 24 Jun 2020 18:52:50 +0000 (20:52 +0200)] 
RFC 7235 compliance, HTTPCLIENT-2086: fixed parsing of token68 based (base64-encoded) auth schemes.

2 years agoHTTPCLIENT-2091: Connect timeout is used instead of socket timeout after a tls upgrade
Oleg Kalnichevski [Tue, 30 Jun 2020 10:23:24 +0000 (12:23 +0200)] 
HTTPCLIENT-2091: Connect timeout is used instead of socket timeout after a tls upgrade

2 years agoHTTPCLIENT-2084: client builders incorrectly add message interceptors with LAST posit...
Oleg Kalnichevski [Wed, 17 Jun 2020 10:44:04 +0000 (12:44 +0200)] 
HTTPCLIENT-2084: client builders incorrectly add message interceptors with LAST position to the head of the list

2 years agoHTTPCLIENT-2083: Fix NPE when classic client interceptors are added
Carter Kozak [Tue, 9 Jun 2020 17:25:34 +0000 (13:25 -0400)] 
HTTPCLIENT-2083: Fix NPE when classic client interceptors are added

Previously HttpClientBuilder methods addExecInterceptorFirst and
addExecInterceptorLast resulted in NullPointerExceptions because
the execInterceptors list had not been initialized yet.

2 years agoUpgraded HttpClient version to 5.0.2-SNAPSHOT
Oleg Kalnichevski [Fri, 12 Jun 2020 07:48:10 +0000 (09:48 +0200)] 
Upgraded HttpClient version to 5.0.2-SNAPSHOT

2 years agoUpdated release notes for HttpClient 5.0.1 release
Oleg Kalnichevski [Thu, 4 Jun 2020 12:37:19 +0000 (14:37 +0200)] 
Updated release notes for HttpClient 5.0.1 release

2 years agoUpgraded HttpCore to version 5.0.1
Oleg Kalnichevski [Mon, 8 Jun 2020 17:13:29 +0000 (19:13 +0200)] 
Upgraded HttpCore to version 5.0.1

2 years agofix typo log debug messages
smashtakov [Wed, 3 Jun 2020 09:10:00 +0000 (12:10 +0300)] 
fix typo log debug messages

2 years agoBug fix: classic connection managers fail to take #isConsistent() flag into account...
Oleg Kalnichevski [Wed, 27 May 2020 10:11:49 +0000 (12:11 +0200)] 
Bug fix: classic connection managers fail to take #isConsistent() flag into account when re-using persistent connections

2 years agoHTTPCLIENT-2077: Authentication failure due to incorrect NTLM auth value check ...
vonahok [Sun, 26 Apr 2020 15:08:15 +0000 (17:08 +0200)] 
HTTPCLIENT-2077: Authentication failure due to incorrect NTLM auth value check   (#223)

2 years agoHTTPCLIENT-2051: corrected handling of 303 redirects
Oleg Kalnichevski [Thu, 23 Apr 2020 15:14:56 +0000 (17:14 +0200)] 
HTTPCLIENT-2051: corrected handling of 303 redirects

2 years agoHTTPASYNC-160: HttpAsyncClient in INACTIVE or STOPPED state throws a IllegalStateExce...
Oleg Kalnichevski [Sat, 18 Apr 2020 10:08:10 +0000 (12:08 +0200)] 
HTTPASYNC-160: HttpAsyncClient in INACTIVE or STOPPED state throws a IllegalStateException causing the current thread to terminate

2 years agoHTTPCLIENT-2076: fix NPE in LaxExpiresHandler (#222)
heejeongkim [Fri, 17 Apr 2020 09:14:21 +0000 (18:14 +0900)] 
HTTPCLIENT-2076: fix NPE in LaxExpiresHandler (#222)

2 years agoHTTPCLIENT-2074: disallow direct execution of CONNECT methods by standard client...
Oleg Kalnichevski [Mon, 6 Apr 2020 15:42:36 +0000 (17:42 +0200)] 
HTTPCLIENT-2074: disallow direct execution of CONNECT methods by standard client implementations

2 years agoHTTPCLIENT-2075: new method Request.responseTimeout(Timeout) in Fluent HC
Ralph [Tue, 7 Apr 2020 21:52:06 +0000 (23:52 +0200)] 
HTTPCLIENT-2075: new method Request.responseTimeout(Timeout) in Fluent HC

2 years agoHTTPCLIENT-2073: (regression) WindowsNegotiateScheme incorrectly rejects empty NTLM...
Oleg Kalnichevski [Sun, 5 Apr 2020 10:46:53 +0000 (12:46 +0200)] 
HTTPCLIENT-2073: (regression) WindowsNegotiateScheme incorrectly rejects empty NTLM challenge

2 years agoMinor tweaks to auth execution logging
Oleg Kalnichevski [Sun, 5 Apr 2020 10:43:26 +0000 (12:43 +0200)] 
Minor tweaks to auth execution logging

2 years agoHTTPCLIENT-2069: RequestConfig#copy does not copy #responseTimeout
Oleg Kalnichevski [Tue, 31 Mar 2020 12:00:01 +0000 (14:00 +0200)] 
HTTPCLIENT-2069: RequestConfig#copy does not copy #responseTimeout

2 years agoHTTPCLIENT-2061: corrected sequence of request execution interceptors in classic...
Oleg Kalnichevski [Sun, 15 Mar 2020 09:32:54 +0000 (10:32 +0100)] 
HTTPCLIENT-2061: corrected sequence of request execution interceptors in classic HttpClient

2 years agoRewrite of redirect integration test cases
Oleg Kalnichevski [Mon, 16 Mar 2020 18:24:35 +0000 (19:24 +0100)] 
Rewrite of redirect integration test cases

2 years agoFix NPE for null HttpContext in minimal async clients
slisaasquatch [Fri, 6 Mar 2020 19:31:42 +0000 (11:31 -0800)] 
Fix NPE for null HttpContext in minimal async clients

2 years agoRemoved unnecessary BasicFuture wrapping
slisaasquatch [Fri, 6 Mar 2020 17:12:33 +0000 (09:12 -0800)] 
Removed unnecessary BasicFuture wrapping

2 years agoUse try-with-resources in examples
Oleg Kalnichevski [Mon, 24 Feb 2020 11:07:55 +0000 (12:07 +0100)] 
Use try-with-resources in examples

2 years agoAdded Clirr API compatibility check
Oleg Kalnichevski [Sat, 22 Feb 2020 13:18:17 +0000 (14:18 +0100)] 
Added Clirr API compatibility check

2 years agoUpgraded HttpClient version to 5.0.1-SNAPSHOT
Oleg Kalnichevski [Sat, 22 Feb 2020 08:56:16 +0000 (09:56 +0100)] 
Upgraded HttpClient version to 5.0.1-SNAPSHOT

2 years agoUpdated release notes for HttpClient 5.0 release
Oleg Kalnichevski [Tue, 18 Feb 2020 12:50:27 +0000 (13:50 +0100)] 
Updated release notes for HttpClient 5.0 release

2 years agoRemoved deprecated methods
Oleg Kalnichevski [Tue, 18 Feb 2020 13:44:58 +0000 (14:44 +0100)] 
Removed deprecated methods

2 years agoHTTPCLIENT-2051: Change POST to GET for 301, 302 and 303 redirects. Other unsafe...
Oleg Kalnichevski [Mon, 17 Feb 2020 12:38:43 +0000 (13:38 +0100)] 
HTTPCLIENT-2051: Change POST to GET for 301, 302 and 303 redirects. Other unsafe methods to be redirected as is.

2 years agoUse finite (3 minutes) connection keep-alive period by default
Oleg Kalnichevski [Fri, 14 Feb 2020 09:32:53 +0000 (10:32 +0100)] 
Use finite (3 minutes) connection keep-alive period by default

2 years agoUpdated Travis CI JDK matrix; replaced Oracle JDK 11 with OpenJDK 12 and Oracle JDK 12
Oleg Kalnichevski [Fri, 18 Oct 2019 12:39:58 +0000 (14:39 +0200)] 
Updated Travis CI JDK matrix; replaced Oracle JDK 11 with OpenJDK 12 and Oracle JDK 12

2 years agoRemoved dodgy work-around for resumed TLS sessions given that JDK-8212885 fix has...
Oleg Kalnichevski [Fri, 19 Apr 2019 17:33:05 +0000 (19:33 +0200)] 
Removed dodgy work-around for resumed TLS sessions given that JDK-8212885 fix has been ported to Java 11 and released in Oracle JDK 11.0.3

2 years agoUpgraded HttpCore dependency to version 5.0
Oleg Kalnichevski [Sat, 15 Feb 2020 13:22:10 +0000 (14:22 +0100)] 
Upgraded HttpCore dependency to version 5.0

2 years agoBug fix: custom SSL context is ignored
Oleg Kalnichevski [Fri, 7 Feb 2020 08:52:49 +0000 (09:52 +0100)] 
Bug fix: custom SSL context is ignored

2 years agoDefaultHttpRequestRetryStrategy: Allow zero retry interval
Ryan Schmitt [Wed, 29 Jan 2020 20:57:38 +0000 (12:57 -0800)] 
DefaultHttpRequestRetryStrategy: Allow zero retry interval

2 years agoNo need to use the type name of an input arg in the method name. (#208)
Gary Gregory [Thu, 30 Jan 2020 00:20:05 +0000 (19:20 -0500)] 
No need to use the type name of an input arg in the method name. (#208)

* No need to use the type name of an input arg in the method name.

* Do not use input type names in method names.

2 years agoHTTPCLIENT-2047: fixed regression in DefaultHostnameVerifier causing rejection of...
Oleg Kalnichevski [Sat, 25 Jan 2020 14:49:44 +0000 (15:49 +0100)] 
HTTPCLIENT-2047: fixed regression in DefaultHostnameVerifier causing rejection of certs with non-standard domains.

This reverts commit 87cc64fc

2 years agoBug fix: fixed handling of private domains by PublicSuffixMatcher
Oleg Kalnichevski [Sat, 25 Jan 2020 14:24:19 +0000 (15:24 +0100)] 
Bug fix: fixed handling of private domains by PublicSuffixMatcher

2 years agoNow that ClassicHttpRequests is no longer an enum, we need to way to
Gary Gregory [Tue, 28 Jan 2020 17:17:46 +0000 (12:17 -0500)] 
Now that ClassicHttpRequests is no longer an enum, we need to way to
generically build requests from method names. Update all factory classes
with matching APIs for Method and String method name inputs.

(#204), (#205)

2 years agoUpgraded HttpClient version to 5.0-beta8-SNAPSHOT
Oleg Kalnichevski [Sun, 26 Jan 2020 11:42:54 +0000 (12:42 +0100)] 
Upgraded HttpClient version to 5.0-beta8-SNAPSHOT

2 years agoUpdated release notes for HttpClient 5.0-beta7 release
Oleg Kalnichevski [Wed, 22 Jan 2020 12:02:53 +0000 (13:02 +0100)] 
Updated release notes for HttpClient 5.0-beta7 release

2 years agoUpdated NOTICE
Oleg Kalnichevski [Wed, 22 Jan 2020 12:03:23 +0000 (13:03 +0100)] 
Updated NOTICE

2 years agoUse camelCase for Java method names -- always 202/head
Michael Osipov [Sun, 19 Jan 2020 19:25:04 +0000 (20:25 +0100)] 
Use camelCase for Java method names -- always

2 years agoConvert convenience builders form enums to final classes
Michael Osipov [Sun, 19 Jan 2020 19:23:33 +0000 (20:23 +0100)] 
Convert convenience builders form enums to final classes

Turn exhaustive enum builder pattern to a final class with builder
methods serving HTTP request objects.

This closes #202

2 years agoDomain name normalization
Oleg Kalnichevski [Fri, 10 Jan 2020 13:52:15 +0000 (14:52 +0100)] 
Domain name normalization

2 years agoHTTPCLIENT-2036: CacheValidityPolicy should use TimeValue 201/head
Michael Osipov [Sun, 15 Dec 2019 12:33:11 +0000 (13:33 +0100)] 
HTTPCLIENT-2036: CacheValidityPolicy should use TimeValue

This closes #201

2 years agoMisc clean ups. (#200)
Gary Gregory [Thu, 9 Jan 2020 16:45:04 +0000 (11:45 -0500)] 
Misc clean ups. (#200)

2 years agoRename CookieSpecs enum to StandardCookieSpec final class
Michael Osipov [Mon, 6 Jan 2020 11:48:02 +0000 (12:48 +0100)] 
Rename CookieSpecs enum to StandardCookieSpec final class

Modeled after StandardCharsets, the new class indicates a non-exhaustive
list of standard cookie specifications by name supported by the HttpClient.
The previous enum suffered from two issues:

* it was exhaustive implying that no more cookie specifications can be supported
* its sole purpose was to contain an id for the declared cookie specification;
  the enum values theirselves were never used directly

This also reuses the naming approach of HttpMultipartMode of symbolic names for
implementation behavior.

This closes #197

2 years agoAdd reactive test coverage
Ryan Schmitt [Fri, 6 Dec 2019 23:13:11 +0000 (15:13 -0800)] 
Add reactive test coverage

This commit adds test coverage for the `:httpcore5-reactive` bindings,
using different types of clients and protocols.

2 years agoDefaultHostnameVerifier: Match DNS and CN names against ICANN domains
Ryan Schmitt [Mon, 6 Jan 2020 23:57:06 +0000 (15:57 -0800)] 
DefaultHostnameVerifier: Match DNS and CN names against ICANN domains

This change ensures that during hostname verification the public suffix
list is only used to prevent wildcard matching against entire TLDs (e.g.
`*.com`). Currently, private domains are also being matched against,
which is preventing reasonable wildcards (such as
`*.s3.eu-central-1.amazonaws.com`) from being respected.

2 years agoUpgraded HttpCore to version 5.0-beta11
Ryan Schmitt [Wed, 11 Dec 2019 23:11:29 +0000 (15:11 -0800)] 
Upgraded HttpCore to version 5.0-beta11

2 years agoHttpByteArrayCacheEntrySerializer minor code cleanup for HTTPCORE-615.
Scott Gifford [Sun, 5 Jan 2020 22:19:01 +0000 (17:19 -0500)] 
HttpByteArrayCacheEntrySerializer minor code cleanup for HTTPCORE-615.

MemcachedCacheEntryHttp inner class NoAgeCacheValidityPolicy should be static.
Add missing javadoc @param and @return entries to MemcachedCacheEntryHttp.
Remove extra blank lines.

2 years agoProperly distinguish between AuthScheme and auth scheme name 193/head
Michael Osipov [Mon, 30 Dec 2019 00:20:04 +0000 (01:20 +0100)] 
Properly distinguish between AuthScheme and auth scheme name

Throughout the code the terms 'authScheme' and 'scheme' have been used
synonymously for an AuthScheme instance and a string-based auth scheme
name. To avoid confusion, fields, methods and variable have been adapted
to distinguish both properly. If necessary, Javadoc has been modified to
denote the nature of the input.

Also an auth scheme name is retained as-is, but normalized to lowercase
if comparsion is required.

This closes #193

2 years ago[HTTPCLIENT-2046] Rename AuthSchemes enum to StandardAuthScheme final class
Gary Gregory [Wed, 1 Jan 2020 14:49:56 +0000 (09:49 -0500)] 
[HTTPCLIENT-2046] Rename AuthSchemes enum to StandardAuthScheme final class

Modeled after StandardCharsets, the new class indicates a non-exhaustive
list of standard auth schemes by name supported by the HttpClient. The
previous enum suffered from two issues:

* it was exhaustive implying that no more auth schemes can be supported
* its sole purpose was to contain an id for the declared auth scheme;
  the enum values theirselves were never used directly

This closes #196