'''

    This file is used for testing only.

    Note : If you want to use this file, make
    sure you use the debug folder to test. Why?
    Debug folder uses relative import, which is useful
    for debugging, but will not work for production package.

    Production package needs package import statements.

    Example:

    This is a package import statement :

    from hasta.http.init import Init

    To :

    This is a relative import statement :

    from init import Init

    Once you already make some changes to the debug folder.
    Copy the whole contents of the debug folder except app.py
    (Which is used for debugging only) , delete all the contents
    inside the hasta folder. After that, change all import
    statements into package import statements.

'''

from init import Init

def application(start_response, environ):

    response_body = b"Hello, world!"

    status = "200 OK"

    response_headers = [ ('Content-type', 'text/plain') ]

    start_response(status, response_headers)

    return response_body.decode("utf-8")

run = Init()

run('0.0.0.0', 8443, app = application)

'''

    This file is used for testing only.

    Note : If you want to use this file, make
    sure you use the debug folder to test. Why?
    Debug folder uses relative import, which is useful
    for debugging, but will not work for production package.

    Production package needs package import statements.

    Example:

    This is a package import statement :

    from hasta.http.init import Init

    To :

    This is a relative import statement :

    from init import Init

    Once you already make some changes to the debug folder.
    Copy the whole contents of the debug folder except app.py
    (Which is used for debugging only) , delete all the contents
    inside the hasta folder. After that, change all import
    statements into package import statements.

'''

from init import Init

def application(start_response, environ):

    response_body = b"Hello, world!"

    status = "200 OK"

    response_headers = [ ('Content-type', 'text/plain') ]

    start_response(status, response_headers)

    return response_body.decode("utf-8")

run = Init()

run('0.0.0.0', 8443, app = application)

This file is used for testing only.      Note : If you want to use this file, make     sure you use the debug folder to test. Why?     Debug folder uses relative import, which is useful     for debugging, but will not work for production package.      Production package needs package import statements.      Example:      This is a package import statement :      from hasta.http.init import Init      To :      This is a relative import statement :      from init import Init      Once you already make some changes to the debug folder.     Copy the whole contents of the debug folder except app.py     (Which is used for debugging only) , delete all the contents     inside the hasta folder. After that, change all import     statements into package import statements.