add auto-doc support
This commit is contained in:
@@ -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
|
||||
```
|
||||
@@ -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
|
||||
```
|
||||
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user