We don't need to implement middleware for 1.0, but it would be useful to have at least a rough sketch of what it will look like so that we know that it will be possible with both the sync and async interceptor interfaces.
For an example of a sketch of this for node.js see this branch:
cprice404/client-sdk-javascript@d1c68c3