HTTP protocol implementation for usage in server context