Google is your friend.
There are so many different methods it's impossible to mention them all.
Most of the knitting blogs & forums will have info.
However if it's a bonnet? Wouldn't 'Jocking' it be the best method?