<commit_before># Network Request Kit
This code is inspried by <NAME>'s [Evolution of a Network Layer](https://github.com/feighter09/Evolution-of-a-Network-Layer). I made it possiable to handle multipart request and deal with response that is ignorable according to my situation. 

There is a [artical](https://github.com/yoxisem544/Network-Evolution-Practice) explain why should we wrap network request like this in chinese. We won't go too deep here. If you don't understand what we are doing here. I sugguest you to read this [artical](https://github.com/yoxisem544/Network-Evolution-Practice) first or [Evolution of A Networking Layer](https://medium.com/@austinfeight/evolution-of-a-networking-layer-c395017188b3#.pkla1nafd) for a english version.

## Requirement
- swift 3.0 or above
- xcode 8.0 or above
- iOS 9 or above

## Installation
Through Cocoapods
```
pod 'NetworkRequestKit', '~> 1.1.2'
```

## Dependencies
- [SwiftyJSON](https://github.com/SwiftyJSON/SwiftyJSON)
- [Alamofire](https://github.com/Alamofire/Alamofire)
- [PromiseKit](https://github.com/mxcl/PromiseKit)

## How to use it
### Preparation
#### Set Your Base Url
What I will do here is to create a new file in your project naming it `NetworkRequestConfig`. Inside this file, I will indicate my `base url` and also set reqeust `header` if you use `Oauth` by throwing your `access token` through `header`.

NetworkRequestConfig.swift
```swift
import NetworkRequestKit

extension NetworkRequest {<commit_msg>no message<commit_after># Network Request Kit
This code is inspried by <NAME>'s [Evolution of a Network Layer](https://github.com/feighter09/Evolution-of-a-Network-Layer). I made it possiable to handle multipart request and deal with response that is ignorable according to my situation. 

There is a [artical](https://github.com/yoxisem544/Network-Evolution-Practice) explain why should we wrap network request like this in chinese. We won't go too deep here. If you don't understand what we are doing here. I sugguest you to read this [artical](https://github.com/yoxisem544/Network-Evolution-Practice) first or [Evolution of A Networking Layer](https://medium.com/@austinfeight/evolution-of-a-networking-layer-c395017188b3#.pkla1nafd) for a english version.

## Requirement
- swift 3.0 or above
- xcode 8.0 or above
- iOS 9 or above

## Installation
Through Cocoapods
```
pod 'NetworkRequestKit', '~> 1.1.2'
```

## Dependencies
- [SwiftyJSON](https://github.com/SwiftyJSON/SwiftyJSON)
- [Alamofire](https://github.com/Alamofire/Alamofire)
- [PromiseKit](https://github.com/mxcl/PromiseKit)

## Sample Project
Sample project is located in the file `NetworkRequestExample`. If you don't want to read the instruction below, just open and play with the sample project.

**Notice**: Remember to install pod before opening sample project.

## How to use it
### Preparation
#### Set Your Base Url
What I will do here is to create a new file in your project naming it `NetworkRequestConfig`. Inside this file, I will indicate my `base url` and also set reqeust `header` if you use `Oauth` by throwing your `access token` through `header`.

NetworkRequestConfig.swift
```swift
import NetworkRequestKit

extension NetworkRequest {
{'fraction_non_alphanumeric': 0.10349127182044887, 'fraction_numerical': 0.01683291770573566, 'mean_word_length': 4.834545454545455, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 14, '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': '7601897', 'n_tokens_mistral': 1026, 'n_tokens_neox': 949, 'n_words': 361}