<commit_before># Httwrap
General purpose HttpClient wrapper

[![Build status](https://ci.appveyor.com/api/projects/status/vyg8a2lsw1jf9nki?svg=true)](https://ci.appveyor.com/project/ziyasal/httwrap)

## How to use  

**Install**  
```cs
PM> Install-Package Httwrap
```
**Init**  
```csharp
  IHttwrapConfiguration configuration = new HttwrapConfiguration("http://localhost:9000/");
  IHttwrapClient _httwrap = new HttwrapClient(configuration);
```

**GET**  
```csharp
IHttwrapResponse<Product> response = await _httwrap.GetAsync<Product>("api/products/1");
Dump(response.Data);
Dump(response.StatusCode);
```

**GET**  <commit_msg>Add coveralls badge<commit_after># Httwrap
General purpose HttpClient wrapper

[![Build status](https://ci.appveyor.com/api/projects/status/vyg8a2lsw1jf9nki?svg=true)](https://ci.appveyor.com/project/ziyasal/httwrap)[![Coverage Status](https://coveralls.io/repos/ziyasal/Httwrap/badge.svg)](https://coveralls.io/r/ziyasal/Httwrap)

## How to use  

**Install**  
```cs
PM> Install-Package Httwrap
```
**Init**  
```csharp
  IHttwrapConfiguration configuration = new HttwrapConfiguration("http://localhost:9000/");
  IHttwrapClient _httwrap = new HttwrapClient(configuration);
```

**GET**  
```csharp
IHttwrapResponse<Product> response = await _httwrap.GetAsync<Product>("api/products/1");
Dump(response.Data);
Dump(response.StatusCode);
```

**GET**  
{'fraction_non_alphanumeric': 0.171242774566474, 'fraction_numerical': 0.01300578034682081, 'mean_word_length': 6.446236559139785, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 6, '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': '4054375', 'n_tokens_mistral': 516, 'n_tokens_neox': 487, 'n_words': 73}