parses websocket header fields; makes wsd cfg global