diff --git a/docs/dart/interceptors.md b/docs/dart/interceptors.md index 4c9d1951..de6c7ab9 100644 --- a/docs/dart/interceptors.md +++ b/docs/dart/interceptors.md @@ -25,7 +25,7 @@ final Interceptor logger = (next) { final transport = protocol.Transport( baseUrl: "https://demo.connectrpc.com", - codec: const JsonCodec(), // Or JsonCodec() + codec: const ProtoCodec(), // Or JsonCodec() httpClient: createHttpClient(), interceptors: [ //highlight-next-line @@ -124,7 +124,7 @@ class LoggingInterceptor { final transport = protocol.Transport( baseUrl: "https://demo.connectrpc.com", - codec: const JsonCodec(), // Or JsonCodec() + codec: const ProtoCodec(), // Or JsonCodec() httpClient: createHttpClient(), interceptors: [ const LoggingInterceptor(print),