mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-07-18 03:23:07 +01:00
20 lines
461 B
C#
20 lines
461 B
C#
using System;
|
|
using System.Net.Http;
|
|
|
|
namespace Tgstation.Server.Host.Tests
|
|
{
|
|
/// <summary>
|
|
/// Basic <see cref="IHttpMessageHandlerFactory"/> implementation for testiong
|
|
/// </summary>
|
|
public sealed class BasicHttpMessageHandlerFactory : IHttpMessageHandlerFactory, IDisposable
|
|
{
|
|
readonly HttpClientHandler handler = new();
|
|
|
|
public HttpMessageHandler CreateHandler(string name)
|
|
=> handler;
|
|
|
|
public void Dispose()
|
|
=> handler.Dispose();
|
|
}
|
|
}
|