Example #1
0
def new_connection(client):
  parser =HttpParser(kind=0)
  parser.environ = True

  client.on(
    "data", on_read, parser , client
  ).on(
    "error", on_error, client
  )
Example #2
0
def new_connection(client):
    parser = HttpParser(kind=0)
    parser.environ = True

    client.on("data", on_read, parser, client).on("error", on_error, client)