<commit_before># Rainier-Beer Http Framework
A simplified express style router

How to use the rainier-beer framework
## How to Install

**npm install rainier-beer**

In order to use rainier-beer you must require it in:
**const rainierBeer = require('rainier-beer');**

## How to use Router

You can create a Router by making a new constructor equal to a variable
 **const practiceRouter = new rainierBeer();**

After that you must create a server as you normally would by using http.createServer:
**http.createServer(practiceRouter.route()).listen(3000, () => console.log('server up'));**

Now you can begin to make easy, one line GET and POST requests.

###POST

**practiceRouter.post('/tiger', '220', 'text/plain', 'Tiger Tiger in the Night');**

####Parameters:
There are 5 parameters for calling the .post() function
          * **routeName** is the url path extension (ex/ '/' or '/anything')
          * **statusCode** is the status you want to define (ex/ 200, 404, 300);
          * **Content-Type** is the type of response you want (ex/ plain/text, application/json)
          * **write** is what is written to the response (ex/ "Hello <NAME>!")

With the post request there is no option for default values but the parameters are extremely customizable.

If you want to print data that is being pushed through then you must put the *write* parameter to equal **chunk**

**practiceRouter.post('/duck', '270', 'text/plain', 'chunk');**

If you want to write an individualized response then substitute **chunk** for any string of your choosing.

**practiceRouter.post('/tiger', '220', 'text/plain', 'Anything except for "chunk"');**

###GET

**practiceRouter.get = function(routeName, statusCode, contentType, write, cb)**

####Parameters:
There are 5 parameters for calling the .get() function
          * **routeName** is the url path extension (ex/ '/' or '/anything')
          * **statusCode** is the status you want to define (ex/ 200, 404, 300);
          * **Content-Type** is the type of response you want (ex/ plain/text, application/json)
          * **write** is what is written to the response (ex/ "Hello Rainier Beer!")

####Default Values:
While indicating your own routeName is mandatory, inherit to the GET requests using this Router are a couple of *default values* should you choose not to input your own parameters when calling the .get() function.
Default Values:
            * **statusCode**: 200
            * **Content-Type**: plain/text
            * **write**: Received GET

If you want to use the default values for a get request then an example is as follows:
**practiceRouter.get('/cat');**

If you want to customize your own you can input your own values for the parameters.
**practiceRouter.get('/moose', 210, 'text/plain', 'Hello Kat');**

##Authors
* <NAME>
* <NAME>

##Resources Used
This framework is heavily based off of in-class demonstrations in Javascript CodeFellows 401-d7.
The authors also referred to the npm package sludgie-trucker-coffee for inspiration.
<commit_msg>trying to get code blocks to show<commit_after># Rainier-Beer Http Framework
A simplified express style router

How to use the rainier-beer framework
## How to Install

**npm install rainier-beer**

In order to use rainier-beer you must require it in:
**const rainierBeer = require('rainier-beer');**

## How to use Router

You can create a Router by making a new constructor equal to a variable
 **const practiceRouter = new rainierBeer();**

After that you must create a server as you normally would by using http.createServer:
**http.createServer(practiceRouter.route()).listen(3000, () => console.log('server up'));**

Now you can begin to make easy, one line GET and POST requests.

###POST

**practiceRouter.post('/tiger', '220', 'text/plain', 'Tiger Tiger in the Night');**

####Parameters:
There are 5 parameters for calling the .post() function
          * **routeName** is the url path extension (ex/ '/' or '/anything')
          * **statusCode** is the status you want to define (ex/ 200, 404, 300);
          * **Content-Type** is the type of response you want (ex/ plain/text, application/json)
          * **write** is what is written to the response (ex/ "Hello <NAME>!")

With the post request there is no option for default values but the parameters are extremely customizable.

If you want to print data that is being pushed through then you must put the *write* parameter to equal **chunk**

**practiceRouter.post('/duck', '270', 'text/plain', 'chunk');**

If you want to write an individualized response then substitute **chunk** for any string of your choosing.

**practiceRouter.post('/tiger', '220', 'text/plain', 'Anything except for "chunk"');**

###GET

**practiceRouter.get = function(routeName, statusCode, contentType, write, cb)**

####Parameters:
There are 5 parameters for calling the .get() function
          * **routeName** is the url path extension (ex/ '/' or '/anything')
          * **statusCode** is the status you want to define (ex/ 200, 404, 300);
          * **Content-Type** is the type of response you want (ex/ plain/text, application/json)
          * **write** is what is written to the response (ex/ "Hello <NAME>!")

####Default Values:
While indicating your own routeName is mandatory, inherit to the GET requests using this Router are a couple of *default values* should you choose not to input your own parameters when calling the .get() function.
Default Values:
            * **statusCode**: 200
            * **Content-Type**: plain/text
            * **write**: Received GET

If you want to use the default values for a get request then an example is as follows:
'''
**practiceRouter.get('/cat');**
'''

If you want to customize your own you can input your own values for the parameters.
**practiceRouter.get('/moose', 210, 'text/plain', 'Hello Kat');**


###DELETE/PUT/PATCH
While these are a;;

##Authors
* <NAME>
* <NAME>

##Resources Used
This framework is heavily based off of in-class demonstrations in Javascript CodeFellows 401-d7.
The authors also referred to the npm package sludgie-trucker-coffee for inspiration.

{'fraction_non_alphanumeric': 0.11844692005242465, 'fraction_numerical': 0.014089121887287025, 'mean_word_length': 3.927360774818402, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 12, 'https://': 0, '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': '1231905', 'n_tokens_mistral': 1777, 'n_tokens_neox': 1634, 'n_words': 790}