<commit_before>[![Build Status](https://travis-ci.org/scalaj/scalaj-http.png)](https://travis-ci.org/scalaj/scalaj-http)

# Simple Http

This is a bare bones http client for scala which wraps HttpURLConnection

**_Note:_ 1.0.x is a new major version of scalaj-http which is both syntactically and behaviorally different than the 0.x.x version.**

Previous version is branched here: https://github.com/scalaj/scalaj-http/tree/0.3.x

Big differences:
* Executing the request always returns a HttpResponse[T] instance the contains the response code, headers, and body
* Exceptions are no longer thrown for 4xx and 5xx response codes. Yay!
* Http(url) is the starting point for every type of request (post, get, multi, etc)
* You can easily create your own singleton instance to set your own defaults (timeouts, proxies, etc)

## Installation

### sbt

```scala
val scalaj_http = "org.scalaj" %% "scalaj-http" % "1.0.0"
```

### maven

```xml
<dependency>
  <groupId>org.scalaj</groupId>
  <artifactId>scalaj-http_${scala.version}</artifactId>
  <version>1.0.0</version>
</dependency>  
```


## Usage<commit_msg>more README fixes<commit_after>[![Build Status](https://travis-ci.org/scalaj/scalaj-http.png)](https://travis-ci.org/scalaj/scalaj-http)

# Simple Http

This is a bare bones http client for scala which wraps HttpURLConnection

**_Note:_ 1.0.x is a new major version which is both syntactically and behaviorally different than the 0.x.x version.**

Previous version is branched here: https://github.com/scalaj/scalaj-http/tree/0.3.x

Big differences:
* Executing the request always returns a HttpResponse[T] instance that contains the response-code, headers, and body
* Exceptions are no longer thrown for 4xx and 5xx response codes. Yay!
* Http(url) is the starting point for every type of request (post, get, multi, etc)
* You can easily create your own singleton instance to set your own defaults (timeouts, proxies, etc)

## Installation

### sbt

```scala
val scalaj_http = "org.scalaj" %% "scalaj-http" % "1.0.0"
```

### maven

```xml
<dependency>
  <groupId>org.scalaj</groupId>
  <artifactId>scalaj-http_${scala.version}</artifactId>
  <version>1.0.0</version>
</dependency>  
```


## Usage
{'fraction_non_alphanumeric': 0.12590579710144928, 'fraction_numerical': 0.01177536231884058, 'mean_word_length': 4.635204081632653, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '586465', 'n_tokens_mistral': 751, 'n_tokens_neox': 695, 'n_words': 234}