Twisted endpoints example