<commit_before># Context-Aware HTTP Handlers

[![GoDoc](https://godoc.org/github.com/spkg/httpctx?status.svg)](https://godoc.org/github.com/spkg/httpctx)

The `httpctx` package provides a convenient way to handle HTTP requests
using "context-aware" handler functions. Context-aware handlers
are different from the standard `http.Handler` in two important ways:

1. They accept an additional parameter of the (almost) standard type `context.Context`
(golang.org/x/net/context); and
2. They return an error result.

The `httpctx` package also implements a simple middleware chaining mechanism. The idea
for this comes from <NAME> and his `alice` package. (https://github.com/justinas/alice).

For usage examples, refer to the [GoDoc](https://godoc.org/github.com/spkg/httpctx) documentation.<commit_msg>Add travis build status badge to README.md<commit_after># Context-Aware HTTP Handlers

[![GoDoc](https://godoc.org/github.com/spkg/httpctx?status.svg)](https://godoc.org/github.com/spkg/httpctx)
[![Build Status](https://travis-ci.org/spkg/httpctx.svg?branch=master)](https://travis-ci.org/spkg/httpctx)


The `httpctx` package provides a convenient way to handle HTTP requests
using "context-aware" handler functions. Context-aware handlers
are different from the standard `http.Handler` in two important ways:

1. They accept an additional parameter of the (almost) standard type `context.Context`
(golang.org/x/net/context); and
2. They return an error result.

The `httpctx` package also implements a simple middleware chaining mechanism. The idea
for this comes from <NAME> and his `alice` package. (https://github.com/justinas/alice).

For usage examples, refer to the [GoDoc](https://godoc.org/github.com/spkg/httpctx) documentation.
{'fraction_non_alphanumeric': 0.11781609195402298, 'fraction_numerical': 0.0022988505747126436, 'mean_word_length': 5.130281690140845, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 10, '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': '158206', 'n_tokens_mistral': 527, 'n_tokens_neox': 515, 'n_words': 171}