/// <summary> /// コンストラクタ /// </summary> /// <param name="InURL">URL</param> /// <param name="InMethod">メソッド</param> private APICommand(string InURL, EHttpMethod InMethod) { URL = InURL; PostData = ""; Method = InMethod; Request = CreateRequest(); }
public HttpPath(string path, EHttpMethod method) { Path = path; Method = method; }
public HttpRequest(string request, string host, string ip, Dictionary <string, string> header, HttpAuth auth, ESO so, EBrowser br, bool is_socket, bool varsToLowerCase) { if (header == null) { http_method = EHttpMethod.Unknown; return; } int ixa = request.IndexOf(' '); if (ixa <= -1) { http_method = EHttpMethod.Unknown; return; } int ixb = request.LastIndexOf(' '); if (ixb <= -1 || ixa == ixb) { http_method = EHttpMethod.Unknown; return; } _VarsToLowerCase = varsToLowerCase; _IP = ip; _so = so; _br = br; _header = header; _auth = auth; _host = new HttpHost(host); switch (request.Substring(0, ixa).ToUpper()) { case "HEAD": http_method = EHttpMethod.HEAD; break; case "GET": http_method = EHttpMethod.GET; break; case "POST": http_method = EHttpMethod.POST; break; default: http_method = EHttpMethod.Unknown; break; } if (is_socket) { http_method = EHttpMethod.SOCKET; } http_url = request.Substring(ixa + 1, ixb - ixa - 1).Trim('/'); http_protocol_version = request.Substring(ixb + 1); int ix_h = http_url.IndexOf('?'); if (ix_h != -1) { foreach (string key in http_url.Remove(0, ix_h + 1).Split('&')) { try { string iz, dr; HttpProcessor.SeparaEnDos(key, '=', out iz, out dr); if (varsToLowerCase) { iz = iz.ToLowerInvariant(); } _get.Add(HttpServer.UrlDecode(iz), HttpServer.UrlDecode(dr)); } catch { } } http_url = http_url.Substring(0, ix_h); } }
public virtual void AfterSummaryCollectionAction(EHttpMethod method, EActionType type, Mutator mutator, ref IEnumerable <TSummary> model, string key = null) { }