add auto-doc support

This commit is contained in:
Yun Xu
2017-07-01 23:46:34 -07:00
parent fd5faeb5dd
commit 3fff685c44
6 changed files with 42 additions and 1 deletions

View File

@@ -117,3 +117,11 @@ args.get('titles') # => 'Post 1'
args.getlist('titles') # => ['Post 1', 'Post 2']
```
## Full API Reference
```eval_rst
.. autoclass:: sanic.request.Request
:members: json, token, form, files, args, raw_args, cookies, ip, scheme, host, content_type, path, query_string, url
```

View File

@@ -110,3 +110,11 @@ def handle_request(request):
status=200
)
```
## Full API Reference
```eval_rst
.. automodule:: sanic.response
:members: json, text, raw, html, file, file_stream, stream, redirect
```

View File

@@ -214,4 +214,3 @@ and `recv` methods to send and receive data respectively.
WebSocket support requires the [websockets](https://github.com/aaugustin/websockets)
package by Aymeric Augustin.