You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: MyApp/_pages/http-utils.md
+17Lines changed: 17 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -125,6 +125,23 @@ The following Core APIs also have extension methods on `HttpClient` which existi
125
125
-`SendStreamToUrl()`
126
126
-`SendStreamToUrlAsync()`
127
127
128
+
## HTTP Client Factory HTTP Utils
129
+
130
+
ServiceStack registers a named `IHttpClientFactory` that's configured with the same defaults as the built-in [HttpUtils](/http-utils) including using Default Credentials and support for Brotli, Deflate and GZip compression.
131
+
132
+
You can access this via `IHttpClientFactory.HttpUtilsClient()` extension method, e.g:
133
+
134
+
```csharp
135
+
publicclassMyServices(IHttpClientFactoryclientFactory) : Service
ServiceStack AppHost's are configured with an empty Memory VFS which can be used to transiently prepopulate App files
559
-
from external sources on Startup or maintain temporary working files with the same lifetime of the App without needing
560
-
to persist to disk.
585
+
ServiceStack AppHost's are configured with an empty Memory VFS which can be used to transiently prepopulate App files from external sources on Startup or maintain temporary working files with the same lifetime of the App without needing to persist to disk.
561
586
562
587
They're also a great solution for Integration Testing managed file access without creating any persistent artifacts as done in
0 commit comments