Imported HTTP parsing and Cookie type from snap-core-0.9.3.1