Gary Gregory
75aabd7f62
Javadoc improvements
...
- No need to use a FQCN when the name is already importted
- Import type instead of using a FQCN
- Use camel-case in paramerter name
- Add missing Javadoc
- Add some missing return tags
- Close some HTML tags
- Fix some comments
- Update Javadoc links
2024-08-17 11:20:08 -04:00
strangelookingnerd
185d4e32aa
Test classes and methods should have default package visibility
2024-06-27 23:11:05 +02:00
Oleg Kalnichevski
762b18fe69
HttpClientContext to use instance variables for standard attributes
2024-02-29 17:12:35 +01:00
Arturo Bernal
7d853d521e
Fix Response Body Truncation Issue in ContentResponseHandler ( #521 )
...
Resolved a bug where the response body was truncated to 256 bytes in all cases, including successful responses.
2023-12-11 12:19:48 +01:00
Oleg Kalnichevski
22a257c2c2
Javadoc fix
2023-08-15 11:21:21 +02:00
Oleg Kalnichevski
83c6079e65
NTLM scheme deprecated and disabled by default
2023-08-12 17:14:53 +02:00
Arturo Bernal
0df9e63932
Enhance ContentResponseHandler to be fault-tolerant
...
This commit enhances the `ContentResponseHandler` class to be more fault-tolerant by handling responses with null or empty bodies without throwing exceptions. If the response was successful (a 2xx status code), the `Content` object is returned. If no response body exists, `Content.NO_CONTENT` is returned.
The implementation extends `ContentResponseHandler` and overrides its methods to handle the response entity and transform it into the actual response object. This is designed to be efficient and use minimal memory.
2023-08-12 17:14:53 +02:00
Oleg Kalnichevski
23bb9b89de
HTTPCLIENT-2206: Corrected resource de-allocation by fluent response objects
2022-02-27 10:25:31 +01:00
Oleg Kalnichevski
e6ad081b3c
Deprecated execute methods that return an open response object in favor of execute methods with a response handler and automatic resource deallocation
2021-12-26 17:02:55 +01:00
Arturo Bernal
d323e0d684
HTTPCLIENT-2189 - Cookie and Cache APIs to use Java time primitives
2021-11-29 14:21:01 +01:00
Arturo Bernal
0a42d173ef
HTTPCLIENT-2186 - Migrate Test to Unit 5.
2021-11-21 19:44:13 +01:00
Oleg Kalnichevski
dfc2086d24
Replaced SimpleDateFormat and Calendar with Java 8 Time APIs; removed thread-local from DateUtils
2021-10-24 16:50:07 +02:00
Oleg Kalnichevski
c56c00c549
Fixed deprecation warnings that could be fixed and suppressed those that could not
2021-09-09 13:49:44 +02:00
Arturo Bernal
1eeca062f2
Use setDefaultConnectionConfig instead of deprecated method setValidateAfterInactivity.
2021-08-27 19:49:22 +02:00
Oleg Kalnichevski
bb04d078ad
Java 1.8 upgrade
2021-05-11 21:34:49 +02:00
Carter Kozak
656d0dd4f3
HTTPCLIENT-2148: fluent Executor volatile access thread safety ( #301 )
2021-04-11 10:29:55 -04:00
rrodewald
8f31e6339d
HTTPCLIENT-2147: fixed broken preemptive auth in HC Fluent
2021-04-07 08:18:05 +02:00
Sandeep Kulkarni
bde58d6add
Fixed NPE during dispose in Response if entity is null
2021-03-18 20:17:45 +01:00
Oleg Kalnichevski
2404540f1f
Deprecated request factory classes in favor of request builders
2021-03-14 22:13:55 +01:00
Oleg Kalnichevski
de5c6a237a
Deleted sample code moved to HttpComponents Website project
2021-02-23 19:18:47 +01:00
Oleg Kalnichevski
0524eed4b9
Replaced deprecated URLEncodedUtils
2020-09-27 12:36:28 +02:00
Ralph
272f00297e
HTTPCLIENT-2075: new method Request.responseTimeout(Timeout) in Fluent HC
2020-04-08 10:32:14 +02:00
Michael Osipov
38a41fea90
Use camelCase for Java method names -- always
2020-01-19 20:25:04 +01:00
Michael Osipov
5a8a6d0fc8
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
2020-01-19 20:23:33 +01:00
Ryan Schmitt
3aec96d3db
Upgraded HttpCore to version 5.0-beta11
2020-01-07 15:41:18 +01:00
Michael Osipov
bca9a873a5
Use consistent variable names
2019-12-15 11:28:08 +01:00
Oleg Kalnichevski
8e42474a6c
Deprecated HttpClient functionality now provided out of HttpCore
2019-07-14 15:48:21 +02:00
Oleg Kalnichevski
b535a2812b
Upgraded HttpCore to version 5.0-beta8
2019-07-14 15:48:21 +02:00
Oleg Kalnichevski
c44a10df75
[HTTPCORE-572] Move examples to the src/test folders for each module
2019-04-02 14:55:24 +02:00
Oleg Kalnichevski
74ae768e0d
Fixed examples broken by HttpCore upgrade
2019-03-07 09:19:08 +01:00
Ryan Schmitt
f8653a011a
Upgrade HttpCore to version 5.0-beta7
2019-02-27 14:36:53 -08:00
Oleg Kalnichevski
b74cb12d44
Renamed RequestConfig#connectionTimeout to RequestConfig#connectTimeout
2018-10-22 15:14:04 +02:00
Oleg Kalnichevski
37c8006472
Javadocs; renamed some methods (no functional changes)
2018-10-17 23:40:12 +02:00
Nicolas Gomez
6e76a8b380
Overload Request's execute method to allow custom CloseableHttpClient
2018-08-30 11:49:46 +02:00
Gary Gregory
3aa9c1fd33
- Always use blocks
...
- Add missing serial version ID (default 1L)
- Camel-case names.
- Don't nest in else clause unnecessarily.
- Remove declared exceptions that are not thrown (but don't break BC.)
- Remove redundant superinterface
- Access static methods directly
- Better local var names.
2018-08-14 20:56:08 +02:00
Gary Gregory
db417d80ba
- [HTTPCLIENT-1931] Add factory enum
...
org.apache.hc.client5.http.classic.methods.ClassicHttpRequests
- [HTTPCLIENT-1932] Add factory enum
org.apache.hc.client5.http.aysnc.methods.HttpRequests
2018-07-13 20:18:33 +02:00
Oleg Kalnichevski
695f353b43
Re-use concurrent primitives from HttpCore
2018-01-12 14:20:10 +01:00
Oleg Kalnichevski
cca56bebe9
AuthScope cleanup
2017-12-05 15:16:05 +01:00
Oleg Kalnichevski
235348eec6
Replaced socket and connect timeout request parameters with a single connection timeout request parameter. HTTP requests may be executed concurrently over a single HTTP/2 connection and no longer should overwrite connection socket timeout
2017-11-18 11:24:17 +01:00
Oleg Kalnichevski
6d17126cbf
Moved classes and renamed packages (no functional changes)
2017-09-02 17:27:30 +02:00
Oleg Kalnichevski
b58e7d46d7
Upgraded HttpCore to version 5.0-alpha4
2017-09-01 20:29:58 +02:00
Oleg Kalnichevski
643ea6c3e0
Fixed javadocs
2017-07-16 23:01:36 +02:00
Oleg Kalnichevski
fed4b907eb
HTTPCLIENT-1691: HttpClient instance used internally by HC Fluent to take system properties into account by default
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1793761 13f79535-47bb-0310-9956-ffa450edef68
2017-05-04 09:42:43 +00:00
Oleg Kalnichevski
da5797f470
Moved classic HttpClient and HC fluent integration tests to httpclient-testing module
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1793319 13f79535-47bb-0310-9956-ffa450edef68
2017-05-01 12:38:41 +00:00
Oleg Kalnichevski
04594b97a9
Upgraded HttpCore to version 5.0-alpha3; fixed HttpCore API usage
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1793305 13f79535-47bb-0310-9956-ffa450edef68
2017-05-01 10:47:09 +00:00
Gary D. Gregory
b1f8cd58f6
Use final.
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1788709 13f79535-47bb-0310-9956-ffa450edef68
2017-03-26 02:43:03 +00:00
Oleg Kalnichevski
191183bf75
Moved sync HTTP method classes
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1784141 13f79535-47bb-0310-9956-ffa450edef68
2017-02-23 14:35:01 +00:00
Oleg Kalnichevski
e48091da3d
Upgraded HttpCore to version 5.0-alpha2; Upgraded to the latest 5.0 APIs
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1776187 13f79535-47bb-0310-9956-ffa450edef68
2016-12-27 19:48:07 +00:00
Gary D. Gregory
fd412e7bf1
[HTTPCLIENT-1786] Port from Apache Commons Logging to Apache Log4j 2.
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1767391 13f79535-47bb-0310-9956-ffa450edef68
2016-10-31 23:24:37 +00:00
Oleg Kalnichevski
4046b8fdcc
HTTPCLIENT-1748: Improved compatibility with system authentication API in applets
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1756293 13f79535-47bb-0310-9956-ffa450edef68
2016-08-13 19:55:43 +00:00