aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/README.md b/README.md
index 9721bed..25f51d4 100644
--- a/README.md
+++ b/README.md
@@ -356,6 +356,16 @@ both a **synchronous** (`OkHttpSyncClientHandler`) and **asynchronous**
OkHttp fully supports HTTP/2.
+### Custom backends, logging, metrics
+
+It is also entirely possible to write your own backend (if so, please consider
+contributing!) or wrapping an existing one. You can even write completely
+generic wrappers for any delegate backend, as the each backend comes equipped
+with a monad for the response wrapper.
+
+This brings the possibility to `map` and `flatMap` over responses. That way you
+could implement e.g. a logging or metric-capturing wrapper.
+
## Request type
All request descriptions have type `RequestT[U, T, S]` (T as in Template).