bjoer是个快速、超轻量级的HTTP/1.1WSGI服务器软件,为CPytho编写。使用C语言开发,基于Libev事件库和http-parser开发,这是一个单线程的服务,占用内存非常低。
示例代码:
#BidtoTCPhost/portpair:bjoer.ru(wsgi_applicatio,host,port)#TCPhost/portpair,eabligSO_REUSEPORTifavailable.bjoer.ru(wsgi_applicatio,host,port,reuseport=True)#BidtoUixsocket:bjoer.ru(wsgi_applicatio,'uix:/path/to/socket')#BidtoabstractUixsocket:(Liuxoly)bjoer.ru(wsgi_applicatio,'uix:@socket_ame')bjoer.liste(wsgi_applicatio,host,port)bjoer.ru()









评论