1
0
mirror of https://github.com/square/okhttp.git synced 2025-09-17 05:22:14 +03:00

43 Commits

Author SHA1 Message Date
renovate[bot]
a51cfbf841 Update dependency com.diffplug.spotless:spotless-plugin-gradle to v7 (#8702)
* Update dependency com.diffplug.spotless:spotless-plugin-gradle to v7

* Reformat

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jake Wharton <jw@squareup.com>
2025-03-19 15:25:20 -04:00
Jesse Wilson
a228fd64cc Reformat with Spotless (#8180)
* Enable spotless

* Run spotlessApply

* Fixup trimMargin

* Re-run spotlessApply
2024-01-07 20:13:22 -05:00
Jesse Wilson
0e312d7804 Prepare to enable Spotless (#8179)
* Prepare to enable Spotless

I'm not super keen on any of these changes, but I am very
keen on having automatic formatting.

* Don't actually enable Spotless yet
2024-01-07 11:05:34 -05:00
Jesse Wilson
eb6c016f6f Stop using AssertJ (#8174)
* Stop using AssertJ

This completes the migration to assertk.

* Fix a missing import

* Fix some type issues
2024-01-04 00:32:07 -05:00
Jesse Wilson
9724956cb4 Convert more tests from Java to Kotlin (#8155) 2023-12-23 10:26:25 +00:00
Yuri Schimke
362f53546d Adopt Version Catalog and Updates plugin (#7075) 2022-02-15 23:38:32 +00:00
Goooler
f5758b7f26 Enable Gradle's type-safe project accessors (#7069) 2022-02-08 20:01:28 +00:00
Jesse Wilson
dc09abfc0b Revert hpack-test-case to the previous submodule version (#7056) 2022-02-06 06:30:02 +00:00
Andre_601
106c8d2d5c Improve OkHttp Docs (#6566)
* Improve OkHttp documentation

* Remove placeholder files

* remove site folder

* Create upgrading_to_okhttp_4.md

* Add redirects and fix paths

* add missing tls page to redirects

* Use custom SVG icons

* Update deploy_website.sh

* Push new changes.
2022-02-05 21:19:09 -05:00
Jesse Wilson
d9a65a85c5 Switch to Vanniktech for Maven publishing (#6929)
* Switch to Vanniktech for Maven publishing

Steal configuration from Okio, which already works nicely.

* Update mockwebserver-junit5/build.gradle.kts

Co-authored-by: Benoît Quenaudon <bquenaudon@squareup.com>

Co-authored-by: Benoît Quenaudon <bquenaudon@squareup.com>
2021-11-26 06:58:00 -05:00
Goooler
3417fd0e78 Update README files to 4.9.3 (#6927) 2021-11-24 09:34:33 -05:00
Jesse Wilson
35bb1740a4 Convert the main build.gradle file to KTS (#6925)
I attempted to do a literal translation as much as possible.
Subprojects now need plugins to be configured directly so they
can use the appropriate syntax.
2021-11-24 07:19:39 +00:00
Yuri Schimke
4b8880aa29 Android 12 Build Dependency (#6892)
* Android 12 Build Dependency
* Add extension required for android junit5 runner
2021-11-14 09:35:27 +00:00
Goooler
e1af67f082 Declare types & Cleanup (#6842)
* Declare types

* Code cleanup

* Declare types
2021-08-30 23:32:43 -04:00
Goooler
8e8c2a6037 Code cleanup (#6831) 2021-08-12 08:26:27 +01:00
Yuri Schimke
b607bb0aa8 Partial move to gradle kotlin (#6532) 2021-02-06 14:57:47 +00:00
Yuri Schimke
4036fa55b7 Update remaining junit4 tests (#6421) 2020-11-14 12:21:04 -05:00
Jesse Wilson
8438e360de Rename mockwebserverwrapper to mockwebserver-deprecated (#6328) 2020-10-18 08:55:43 -04:00
Jesse Wilson
3e331c1089 Rename okhttp3.mockwebserver to mockwebserver3 (#6327)
Also rename okhttp3.mockwebserverwrapper to okhttp3.mockwebserver

Directories are not renamed to minimize the git diff. That'll follow
in a separate commit.

Most users of the API are not impacted. The ones that are:
 - CallTest subclasses QueueDispatcher
 - DuplexTest uses duplex APIs
 - HttpOverHttp2Test subclasses QueueDispatcher

This is part 2 of the plan described here:
https://github.com/square/okhttp/pull/6326
2020-10-18 08:13:09 -04:00
Yuri Schimke
0b6c0d25d0 ErrorProne cleanup of two modules (#5640)
* Fix

* Fix 2
2019-12-08 19:49:27 -05:00
Jesse Wilson
7f800e6106 Convert Hpack to Kotlin (#4987)
* Rename Hpack.java to .kt

* Convert Hpack to Kotlin
2019-04-28 12:42:14 -05:00
Yuri Schimke
d04b9b0cca Skip hpack if tests are missing (#4770) 2019-03-24 14:57:25 +00:00
Jesse Wilson
dc1e870d24 Basic Gradle support 2019-03-17 00:16:26 -04:00
Jesse Wilson
dedc6ecd5b Use more AssertJ features 2019-03-14 17:57:42 -04:00
Jesse Wilson
695b46cb2e [maven-release-plugin] prepare for next development iteration 2019-03-13 23:42:40 -04:00
Jesse Wilson
44d51d0ceb [maven-release-plugin] prepare release parent-3.14.0 2019-03-13 23:42:33 -04:00
Benoît Quenaudon
6c4855a7c7 Use AssertJ in tests (#4713) 2019-03-13 21:07:33 -04:00
Jesse Wilson
bf8e653c3a Get the latest versions of things.
I used 'mvn versions:use-latest-versions' and also just a bunch of manual
fixing.
2018-12-28 15:53:46 -05:00
jwilson
d2539622e0 Fix HPACK tests to use the http2 package. 2016-07-10 11:34:02 -04:00
jwilson
8318fadb32 Fix a major bug in our HPACK encoder.
Running the HPACK regression suite shows that in some cases we may
use the wrong dynamic index after the dynamic table has been resized.

This fixes the problem and simplifies the implementation to avoid
maps with Integer values, which were difficult to reason about and
easy to get out-of-sync with the main table.
2016-07-10 11:31:30 -04:00
jwilson
3d43a8dba8 Rename FramedConnection to Http2Connection.
Also rename HttpStream to HttpCodec. This is the interface implemented
for both HTTP/1.1 and HTTP/2. The HTTP/2 codec creates a stream when
it is used.
2016-07-09 18:09:19 -04:00
jwilson
ad103f421e Use Moshi in OkHttp.
As discussed here: https://github.com/square/okhttp/pull/2492
2016-04-21 23:20:30 -10:00
jwilson
98ae0fb92c Sort imports and wrap documentation at 100 columns.
This is a mechanical refactoring. The only thing I had trouble with is IntelliJ's
weak support for <ul> tags in Javadoc.
2015-12-23 19:34:28 -05:00
jwilson
ce3e7c40ff Change groupid to com.squareup.okhttp3. 2015-12-16 19:40:48 -05:00
jwilson
c9a89876de Rename com.squareup.okhttp to okhttp3
Maven group changes will come in follow up.
2015-12-16 01:34:59 -05:00
Jake Wharton
c753d2e41b Rename 'spdy' references to 'framed' where appropriate. 2015-06-17 18:40:12 -04:00
Neil Fuller
4e08085cc8 Install an UncaughtExceptionHandler during tests
This is to make the tests more brittle around uncaught exceptions
as they are on Android. No uncaught exceptions should escape.
2015-04-14 16:55:26 +01:00
Adrian Cole
60b1dfc169 Updates to http/2 final
Http2 and Hpack have been [submitted]
(https://www.rfc-editor.org/queue2.html#draft-ietf-httpbis-http2) to the
IETF. This change removes the draft alpn identifier, and renames types
accordingly.
2015-03-11 08:18:00 -07:00
Adrian Cole
0ad37cede4 Update to h2-16, hpack-10. 2014-12-15 08:59:53 -08:00
Jesse Wilson
0316426ecf Bump pom versions to 2.1.0-SNAPSHOT. 2014-11-05 00:21:52 -05:00
Adrian Cole
1ef2c93ec1 Only read hpack tests for the current draft. 2014-10-14 09:14:50 -07:00
Adrian Cole
973cc9338a Update to h2-14 and hpack-9. 2014-09-22 11:29:40 -07:00
Wesley Tarle
ea13e5ec97 Add hpack-test-case test module.
Issue square/okhttp#931
2014-07-06 10:34:22 -07:00