<commit_before># Http-Request
Simple Http Library to make request and access the response.

1. Create a Request Object
2. Create instance of HttpClient using request instance.
3. Send Request

## Send GET Request

```java
Request request = new Request("http://httpbin.org/get");
HttpClient client = new HttpClient(request);
Response response = client.execute();
```

## Send POST Request

```java
Request request = new Request("http://httpbin.org/post", RequestMethod.POST);
request.form("key1", "value1");
HttpClient client = new HttpClient(request);
Response response = client.execute();
```<commit_msg>updates readme file<commit_after># Http Request
Simple Http Library to make request and access the response.

1. Create a Request Object
2. Create instance of HttpClient using request instance.
3. Send Request

## Send GET Request

```java
Request request = new Request("http://httpbin.org/get");
HttpClient client = new HttpClient(request);
Response response = client.execute();
```

## Pass Query Parameters

```java
Request request = new Request("http://httpbin.org/get");
request.args("search","amit").args("type","people");

//will convert to http://httpbin.org/get?search=amit&type=people

Response response = new HttpClient(request).execute();
```


## Send POST Request

```java
Request request = new Request("http://httpbin.org/post", RequestMethod.POST);
Response response = new HttpClient(request).execute();
```

## Post Request with Form Data

```java
Request request = new Request("http://httpbin.org/post", RequestMethod.POST);

//Form-Data
request.form("key1", "value1").form("key2", "value2");

Response response = new HttpClient(request);.execute();
```

## GZip Compression

```java
Request request = new Request("http://httpbin.org/gzip");
request.acceptGzipEncoding().uncompress(true);
Response response = new HttpClient(request).execute();
```

## Trust Certificates

```java
Request request = new Request("https://httpbin.org/get");
//To trust all certificate
request.trustCert(true);
Response response = new HttpClient(request).execute();
```
{'fraction_non_alphanumeric': 0.1496861419604056, 'fraction_numerical': 0.005794302269435055, 'mean_word_length': 5.598726114649682, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '2417491', 'n_tokens_mistral': 591, 'n_tokens_neox': 569, 'n_words': 184}