<commit_before>ScriptCs.EasyHttp
=================

A scriptcs script pack for performing very easy and declarative http requests in your scripts with no boilerplate code needed.<commit_msg>updated readme file with description and small code sample<commit_after>ScriptCs.EasyHttp
=================

A scriptcs script pack for performing very easy and declarative http requests in your scripts with no boilerplate code needed.

Using this script pack you can write very simple scripts similar to this:


	public class Notification
	{
		public string Message {get; set;}
		public string SenderName {get; set;}
	}
	var notificationToSend = new Notification { Message = "Merry christmas!", SenderName = "Santa"};
	var http = Require<EasyHttp>();
	var result = http.PostJson("http://your.site.com/api/notification", notificationToSend);
	Console.WriteLine("Response status code: " + result.StatusCode);


The script pack also has the Json.NET namespace available so you can make use of different Json.NET serialization possibilities (e.g. [JsonIgnore]) to suit your needs. 
{'fraction_non_alphanumeric': 0.09925093632958802, 'fraction_numerical': 0.0, 'mean_word_length': 5.325443786982248, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '3122713', 'n_tokens_mistral': 280, 'n_tokens_neox': 259, 'n_words': 120}