Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/c/a/canape-HEAD/CANAPE.Scripting/Templates/python/httpserver.py   canape(Download)
from CANAPE.Scripting import BaseDataEndpoint
from CANAPE.DataFrames import DataFrame
from CANAPE.Net.Protocols.Server import DynamicHttpDataServer, HttpServerResponseData
from CANAPE.Utils import GeneralUtils
 
    def HandleRequest(self, method, path, body, headers, version, logger):
        logger.LogInfo("Received Request: {0} {1} {2}", method, path, 
            GeneralUtils.MakeByteString(body))
        return HttpServerResponseData("Hello World")