/// <summary> /// 发送 /// </summary> public void send() { write(); if (_method == HttpMethodType.Get) { //WWWForm f = new WWWForm(); _www = new WWW(_url); } else if (_method == HttpMethodType.Post) { _www = new WWW(_url, _postStream.getByteArray()); } NetControl.addHttpRequest(this); }
/// <summary> /// 直接写出byte[](sendAbs用) /// </summary> /// <returns></returns> public byte[] writeToBytes() { write(); return(_stream.getByteArray()); }