applied immutable collection to http request and response