<commit_before># HTTPism

## Hypermedia

The idea is that you can point `httpism` at a resource, identified by a URL, then call `GET` or `POST` on it, then follow a link in the returned resource, and make another `GET` or `POST`, or any other kind of verb. Follow the hypermedia links, that's what its all about right?

## API (in [pogoscript](http://pogoscript.org/), of course)

    httpism = require 'httpism'

    resource = httpism.get! 'http://example.com/'

### Content-Types

    httpism.content types = {
        'application/json' (response) =
            JSON.parse (response.body)
    }

### GET

    the resource = resource.get! ()

Or

    linked resource = resource.get! 'relative/url.html'

### POST

    new resource = resource.post! (body)<commit_msg>corrected post example in readme<commit_after># HTTPism

## Hypermedia

The idea is that you can point `httpism` at a resource, identified by a URL, then call `GET` or `POST` on it, then follow a link in the returned resource, and make another `GET` or `POST`, or any other kind of verb. Follow the hypermedia links, that's what its all about right?

## API (in [pogoscript](http://pogoscript.org/), of course)

    httpism = require 'httpism'

    resource = httpism.get! 'http://example.com/'

### Content-Types

    httpism.content types = {
        'application/json' (response) =
            JSON.parse (response.body)
    }

### GET

    the resource = resource.get! ()

Or

    linked resource = resource.get! 'relative/url.html'

### POST

    new resource = resource.post! { body = "whatever" }
{'fraction_non_alphanumeric': 0.12022900763358779, 'fraction_numerical': 0.0, 'mean_word_length': 3.2171581769436997, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3885859', 'n_tokens_mistral': 489, 'n_tokens_neox': 466, 'n_words': 178}