( )⚙ D2512 wireproto: add transport specific capabilities in the transport

This is an archive of the discontinued Mercurial Phabricator instance.

wireproto: add transport specific capabilities in the transport
ClosedPublic

Authored by indygreg on Mar 1 2018, 11:34 AM.

Details

Summary

We add a method to the protocol handler interface that allows
specific implementations to add their own capabilities.

The SSH implementation is a no-op.

The HTTP implementation adds the HTTP-specific capabilities.

The end result is transport specific capabilities now live in the
transport code instead of in some generic function in the wireproto
module.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

indygreg created this revision.Mar 1 2018, 11:34 AM
indygreg updated this revision to Diff 6341.Mar 2 2018, 9:50 AM
durin42 accepted this revision.Mar 2 2018, 7:06 PM
This revision is now accepted and ready to land.Mar 2 2018, 7:06 PM
This revision was automatically updated to reflect the committed changes.