/// <summary> /// Sets the instance built by the <paramref name="builder"/> /// </summary> /// <param name="builder">Builder of the <see cref="HttpContext"/> instance.</param> /// <returns>A scope object that resets the <see cref="HttpContext.Current"/> after is disposed.</returns> public static HttpContextReseter Set(HttpContextBuilder builder) { return(new HttpContextReseter(builder.Context)); }
internal HttpRequestBuilder(HttpContextBuilder builder, HttpRequestModel model) { _builder = builder; _model = model; }