rwf 0.2.1

Framework for building web applications in the Rust programming language
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13

def wrapper(env, application):
    # List is passed by reference into the lambda function.
    results = []

    # Start response for wsgi.
    def start_response(code, headers):
        results.append(code)
        results.append(headers)

    response = application(env, start_response)

    return (response, results[0], results[1])