Yet Another WebIOPi+
Main Page
Related Pages
Packages
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Macros
Pages
python
webiopi
decorators
rest.py
Go to the documentation of this file.
1
def
request
(method="GET", path="", data=None):
2
def
wrapper(func):
3
func.routed =
True
4
func.method = method
5
func.path = path
6
func.data = data
7
return
func
8
return
wrapper
9
10
def
response
(fmt="%s", contentType="text/plain"):
11
def
wrapper(func):
12
func.format = fmt
13
func.contentType = contentType
14
return
func
15
return
wrapper
16
17
def
macro
(func):
18
func.macro =
True
19
return
func
webiopi.decorators.rest.response
def response
Definition:
rest.py:10
webiopi.decorators.rest.request
def request
Definition:
rest.py:1
webiopi.decorators.rest.macro
def macro
Definition:
rest.py:17
Generated on Sat Sep 10 2016 09:36:49 for Yet Another WebIOPi+ by
1.8.8