Changed HTTP API to let setting HTTP to e.g. serial connection