Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAndGetBody ¶
CheckAndGetBody checks if the request body is not nil and tries to read it in a byte slice when an error occurs an error will be send back using the ResponseWriter
func CheckContentType ¶
CheckContentType checks if there is a content-type header, if so check if it is of type application/json, if not return an error, SensorThings server only accepts application/json
func GetEntityID ¶
GetEntityID retrieves the id from the request, for example the request http://mysensor.com/V1.0/Things(1236532) returns 1236532 as id
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.