1
0
mirror of https://github.com/square/okhttp.git synced 2026-01-12 10:23:16 +03:00
Files
okhttp/okhttp-testing-support
Jesse Wilson 0470853d72 Add tags to calls, including computable tags (#9168)
Originally I was planning on implementing tags on
Request only, but that design broke as soon as any
interceptor used Request.newBuilder() to create a
copy of the Request - the instance that received the
tags might not be the instance that needed them.

Instead I'm introducing this behavior on the Call
object, which behaves less like a value. I expect
that users' expected lifetimes of tags will work
naturally this way.

It is an API hazard that we have tags on both
Requests and Calls. Perhaps if given the opportunity
to do it over, I'd omit support for tags on Requests.

Co-authored-by: Jesse Wilson <jwilson@squareup.com>
2025-10-26 10:54:46 -04:00
..

OkHttp Testing Support

This module offers utilities and support for testing OkHttp itself. It's not intended for use by other projects or consumers of the OkHttp library.