Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
almarklein committed Feb 18, 2019
1 parent 64d540f commit 03d30a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion asgineer/_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def normalize_response(response):
def guess_content_type_from_body(body):
""" Guess the content-type based of the body.
* "text/html" for str bodies that start with "<!DOCTYPE html>" or "<html>".
* "text/html" for str bodies starting with ``<!DOCTYPE html>`` or ``<html>``.
* "text/plain" for other str bodies.
* "application/json" for dict bodies.
* "application/octet-stream" otherwise.
Expand Down
4 changes: 3 additions & 1 deletion docs/reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ Utility functions

The ``asgineer.utils`` module provides a few utilities for common tasks.

.. autofunction:: asgineer.utils.make_asset_handler

.. autofunction:: asgineer.utils.normalize_response

.. autofunction:: asgineer.utils.make_asset_handler
.. autofunction:: asgineer.utils.guess_content_type_from_body

0 comments on commit 03d30a9

Please sign in to comment.