Unmarshal HEADERS logic