How to cope with cookies

Hi all!

Is there any lib for processing with cookies when using Net::HTTP?
Something like cookielib or cookiejar that can automatically record
and insert into headers for Net::HTTP requests?

Thanks!