1
0
mirror of https://github.com/square/okhttp.git synced 2026-10-24 07:59:29 +03:00

8 Commits

Author SHA1 Message Date
Jesse Wilson
d291c023c9 Enable in-memory caching in DnsOverHttps and AndroidDns (#9594)
The default cache size is 1,000, which is effectively unbounded
for mobile apps, which likely call a few dozen API servers, ad
networks, and analytics systems.

I don't expect DnsOverHttps to be deployed in other environments.
If so, it's possible this cache will be problematic, as even
10-second stale results can be problematic for server
environments. I'll put an appropriate warning about this in our
release notes.
2026-07-25 23:18:15 -04:00
Jesse Wilson
6846f1f679 Rename includeHttps to includeServiceMetadata (#9565)
* Rename includeHttps to includeServiceMetadata

'HTTPS' is way too confusing for DnsOverHttps, because it's about
a DNS record type and not the transport for which records are
retrieved.

* Fix another includeHttps use
2026-07-19 21:59:19 -04:00
Jesse Wilson
6d0e76d0b9 Define only one DNS interface (#9554) 2026-07-17 11:42:20 -04:00
Jesse Wilson
e14cdaa7a2 DnsOverHttps Fixups: event sequencing, resolvePublicAddresses, IPv6 first (#9553)
* New tests for HTTPS records

* Honor resolvePrivateAddresses and resolvePublicAddresses in DnsOverHttps

* Spotless

* Test canceling after a partial success

* Use a volatile to track whether it's canceled

* Spotless
2026-07-17 09:46:23 -04:00
Jesse Wilson
f542df894f Implement Dns2 on DnsOverHttps (#9550)
* WIP: Implement Dns2 on DnsOverHttps

Obviously this needs more than zero tests.

* Test the new API with the old tests
2026-07-16 09:06:06 -04:00
Jesse Wilson
d86233eb45 Decode HTTPS DNS records (#9543)
* Decode HTTPS DNS records

* Spotless

* Fix refactor

* apiDump

* Cut some allocations

* animal sniffer
2026-07-14 12:33:15 -04:00
Jesse Wilson
a62974de39 Remove DnsRecordCodec from our public API (#7113) 2022-02-27 10:23:43 -05:00
Jesse Wilson
3e16ec28fe Adopt Kotlin's binary compatibility validator (#7112) 2022-02-26 14:17:33 -05:00