HttpEndpoint: Add support for terminateOnEOS constructor parameter

Change-Id: I537ce49899d93379bef93a83d7d537372bdb12ad