Bring 1 1/2 cups of the milk, the sugar and cocoa to a simmer in a medium saucepan over medium-high heat, stirring occasionally to dissolve the sugar. Meanwhile, whisk the remaining 1/2 cup of milk with the cornstarch, vanilla, egg yolks, and salt in a medium bowl. Gradually whisk the hot milk mixture into the egg mixture.
Return the milk-egg mixture to the saucepan and continue to cook, whisking constantly, until the pudding comes to a full boil. Reduce the heat to maintain a simmer, and continue whisking until thick, about 2 or 3 minutes more.
Divide the pudding among 4 to 6 small ramekins or dessert cups. Cover with plastic wrap and refrigerate until set, at least 4 hours or up to overnight. Serve each pudding with a dollop of whipped cream and a sprinkle of chocolate shavings.
Copyright 2016 Television Food Network, G.P. All rights reserved.