An open API service indexing awesome lists of open source software.

https://github.com/jeroen/webutils

Utility functions for web applications
https://github.com/jeroen/webutils

Last synced: 29 days ago
JSON representation

Utility functions for web applications

Awesome Lists containing this project

README

        

# webutils

##### *Utility Functions for Web Applications*

[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/webutils)](http://cran.r-project.org/package=webutils)
[![CRAN RStudio mirror downloads](http://cranlogs.r-pkg.org/badges/webutils)](http://cran.r-project.org/web/packages/webutils/index.html)

> Utility functions for developing web applications. Includes parsers
for application/x-www-form-urlencoded as well as multipart/form-data
and examples of using the parser with either httpuv or rhttpd.

## Hello World

```r
# Parse json encoded payload:
parse_http('{"foo":123, "bar":true}', 'application/json')

# Parse url-encoded payload
parse_http("foo=1%2B1%3D2&bar=yin%26yang", "application/x-www-form-urlencoded")

## Use demo app to parse multipart/form-data payload
demo_rhttpd()
```