Simple http client written in scala