Parse method headers