library ieee; use ieee.std_logic_1164.all; entity t2 is end t2; architecture behav of t2 is constant my_const : std_ulogic_vector := "01XWL"; constant my_str : string := "Hello"; begin end; anaceas.org/cgit/cloud-email/mitmproxy/atom/examples/nonblocking.py?h=master' type='application/atom+xml'/>
aboutsummaryrefslogtreecommitdiffstats
path: root/examples/nonblocking.py
blob: 9a131b322de3435a947aeddcf29e4e30a1935cc6 (plain)
1
2
3
4
5
6
7
8
import time
from libmproxy.script import concurrent

@concurrent
def request(context, flow):
    print "handle request: %s%s" % (flow.request.host, flow.request.path)
    time.sleep(5)
    print "start  request: %s%s" % (flow.request.host, flow.request.path)