在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:JuliaWeb/HttpServer.jl开源软件地址:https://github.com/JuliaWeb/HttpServer.jl开源编程语言:Julia 100.0%开源软件介绍:This project is deprecated. Please use HTTP.jl HttpServer.jlThis is a basic, non-blocking HTTP server in Julia. You can write a basic application using just this if you're happy dealing with values representing HTTP requests and responses directly. For a higher-level view, you could use Mux. If you'd like to use WebSockets as well, you'll need to grab WebSockets.jl. InstallationUse Julia package manager to install this package as follows:
Functionality
You can find many examples of how to use this package in the Exampleusing HttpServer
http = HttpHandler() do req::Request, res::Response
Response( ismatch(r"^/hello/",req.resource) ? string("Hello ", split(req.resource,'/')[3], "!") : 404 )
end
server = Server( http )
run( server, 8000 )
# or
run(server, host=IPv4(127,0,0,1), port=8000) If you open up
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论