internal Request(IServer server, IEndPoint endPoint, IClientConnection client, IClientConnection localClient, HttpProtocol protocol, FlexibleRequestMethod method, RoutingTarget target, IHeaderCollection headers, ICookieCollection?cookies, IForwardingCollection?forwardings, IRequestQuery?query, Stream?content) { Client = client; LocalClient = localClient; Server = server; EndPoint = endPoint; ProtocolType = protocol; Method = method; Target = target; _Cookies = cookies; _Forwardings = forwardings; _Query = query; Headers = headers; Content = content; }
/// <summary> /// Marks the method as a webservice method. /// </summary> /// <param name="requestMethod">The HTTP verb used to invoke the method</param> /// <param name="path">The path the method should be available at</param> public MethodAttribute(RequestMethod requestMethod = Api.Protocol.RequestMethod.GET, string?path = null) { RequestMethod = new FlexibleRequestMethod(requestMethod); Path = path; }