def handleFlaskPostRequest ( flaskRequest , endpoint ) : if flaskRequest . method == "POST" : return handleHttpPost ( flaskRequest , endpoint ) elif flaskRequest . method == "OPTIONS" : return handleHttpOptions ( ) else : raise exceptions . MethodNotAllowedException ( )
python flask if requests is post
Handles the specified flask request for one of the POST URLS Invokes the specified endpoint to generate a response .
def handleFlaskPostRequest(flaskRequest, endpoint):
    """
    Handles the specified flask request for one of the POST URLS
    Invokes the specified endpoint to generate a response.
    """
    if flaskRequest.method == "POST":
        return handleHttpPost(flaskRequest, endpoint)
    elif flaskRequest.method == "OPTIONS":
        return handleHttpOptions()
    else:
        raise exceptions.MethodNotAllowedException()