例如:
HTTP/1.1 200 OK
Content-Type: text/html;charset=utf-8
Connection: keep-alive
Server: workerman/3.5.1
Content-Length: 11
這個直接是做不到的,不過workerman本身已內(nèi)置有方法 Http::headRemove(),要用的話還是需要動源碼的,你可以改改看,我考慮提交個PR,看老大怎么說吧。
同樣問題 這個要怎么處理 麻煩大佬們回復(fù)下 謝謝
直接設(shè)置Server的header替換掉原來的。http://doc.workerman.net/http/response.html
比如workerman4.x里
$response = new Response(200, [
'Server' => 'x-server'
], 'this is body');
$connection->send($response);