As far as I know the header end tag is not yet decided.
But detecting headers end should not be very complicate.
If you find a line starting with another number other than 0 header has finished. You may have to skip a line back for detecting BFC, but that's it.