cleanup some old auth stuff
This commit is contained in:
@@ -19,9 +19,11 @@ public class RequestContext : IDisposable {
|
||||
/// </summary>
|
||||
public TextWriter RespWriter => respWriter ??= TextWriter.Synchronized(new StreamWriter(ListenerContext.Response.OutputStream) { NewLine = "\n" });
|
||||
|
||||
#pragma warning disable CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
|
||||
public RequestContext(HttpListenerContext listenerContext) {
|
||||
ListenerContext = listenerContext;
|
||||
}
|
||||
#pragma warning restore CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
|
||||
|
||||
public async Task WriteLineToRespAsync(string resp) => await RespWriter.WriteLineAsync(resp);
|
||||
public async Task WriteToRespAsync(string resp) => await RespWriter.WriteAsync(resp);
|
||||
|
||||
Reference in New Issue
Block a user