Setting a protocol handler