Servo.Utils (Tom Servo v0.1.0) View Source

Utilities for transforming requests

Link to this section Summary

Functions

Adds an emoji to the response body based on the response status code.

Uses Logger module to print requests.

Converts id query string parameter to a path parameter.

Logs 404 requests

Link to this section Functions

Adds an emoji to the response body based on the response status code.

Uses Logger module to print requests.

Link to this function

put_res_content_type(req, type)

View Source

Converts id query string parameter to a path parameter.

Logs 404 requests