Home
last modified time | relevance | path

Searched refs:HttpListenerContext (Results 1 – 25 of 101) sorted by relevance

12345

/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Net.HttpListener/src/System/Net/Managed/
H A DHttpListener.Managed.cs16 …rivate Dictionary<HttpListenerContext, HttpListenerContext> _listenerContexts = new Dictionary<Htt…
17 private List<HttpListenerContext> _contextQueue = new List<HttpListenerContext>();
170 internal void UnregisterContext(HttpListenerContext context) in UnregisterContext()
200 internal void RegisterContext(HttpListenerContext context) in RegisterContext()
236 var all = new HttpListenerContext[keys.Count]; in Cleanup()
272 private HttpListenerContext GetContextFromQueue() in GetContextFromQueue()
281 HttpListenerContext context = _contextQueue[0]; in GetContextFromQueue()
303 HttpListenerContext ctx = GetContextFromQueue(); in BeginGetContext()
317 public HttpListenerContext EndGetContext(IAsyncResult asyncResult) in EndGetContext()
347 HttpListenerContext context = ares.GetContext(); in EndGetContext()
[all …]
H A DListenerAsyncResult.Managed.cs46 private HttpListenerContext _context;
99 internal void Complete(HttpListenerContext context) in Complete()
104 internal void Complete(HttpListenerContext context, bool synch) in Complete()
143 !HttpListenerContext.IsBasicHeader(authHeader) || in Complete()
145 …!HttpListenerContext.TryParseBasicAuth(authHeader.Substring(AuthenticationTypes.Basic.Length + 1),… in Complete()
188 internal HttpListenerContext GetContext() in GetContext()
H A DHttpListenerContext.Managed.cs13 public sealed unsafe partial class HttpListenerContext class
17 internal HttpListenerContext(HttpConnection connection) in HttpListenerContext() method in System.Net.HttpListenerContext
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Net.HttpListener/tests/
H A DHttpRequestStreamTests.cs50 HttpListenerContext context = await contextTask; in Read_FullLengthAsynchronous_Success()
94 HttpListenerContext context = await contextTask; in Read_FullLengthAsynchronous_PadBuffer_Success()
140 HttpListenerContext context = await contextTask; in Read_FullLengthSynchronous_Success()
187 HttpListenerContext context = await contextTask; in Read_LargeLengthAsynchronous_Success()
227 HttpListenerContext context = await contextTask; in Read_LargeLengthSynchronous_Success()
263 HttpListenerContext context = await contextTask; in Read_TooMuchAsynchronous_Success()
289 HttpListenerContext context = await contextTask; in Read_TooMuchSynchronous_Success()
315 HttpListenerContext context = await contextTask; in Read_NotEnoughThenCloseAsynchronous_Success()
339 HttpListenerContext context = await contextTask; in Read_Disposed_ReturnsZero()
363 HttpListenerContext context = await contextTask; in CanSeek_Get_ReturnsFalse()
[all …]
H A DHttpListenerContextTests.cs52 HttpListenerContext context = await GetWebSocketContext(clientProtocols); in AcceptWebSocketAsync_ValidSubProtocol_Success()
86 HttpListenerContext context = await GetWebSocketContext(new string[] { "SubProtocol" }); in AcceptWebSocketAsync_ValidWebSocket_SetsUpContextProperties()
105 HttpListenerContext context = await GetWebSocketContext(); in AcceptWebSocketAsync_AuthorizationInHeaders_ThrowsNotImplementedException()
128 HttpListenerContext context = await GetWebSocketContext(); in AcceptWebSocketAsync_NoClientSubProtocol_ThrowsWebSocketException()
176 HttpListenerContext context = await GetWebSocketContext(); in AcceptWebSocketAsync_InvalidSubProtocol_ThrowsArgumentException()
186 HttpListenerContext context = await GetWebSocketContext(); in AcceptWebSocketAsync_NoSuchSubProtocol_ThrowsWebSocketException()
193 HttpListenerContext context = await GetWebSocketContext(); in AcceptWebSocketAsync_InvalidKeepAlive_ThrowsWebSocketException()
206 HttpListenerContext context = await GetWebSocketContext(); in AcceptWebSocketAsync_InvalidReceiveBufferSize_ThrowsWebSocketException()
213 HttpListenerContext context = await GetWebSocketContext(); in AcceptWebSocketAsync_NullArrayInArraySegment_ThrowsArgumentNullException()
224 HttpListenerContext context = await GetWebSocketContext(); in AcceptWebSocketAsync_InvalidOffsetInArraySegment_ThrowsArgumentNullException()
[all …]
H A DHttpResponseStreamTests.cs41 Task<HttpListenerContext> serverContextTask = _listener.GetContextAsync(); in SimpleRequest_WriteAsynchronously_Succeeds()
47 HttpListenerContext serverContext = await serverContextTask; in SimpleRequest_WriteAsynchronously_Succeeds()
85 HttpListenerContext serverContext = await serverContextTask; in SimpleRequest_WriteSynchronouslyNonEmpty_Succeeds()
121 HttpListenerContext serverContext = await serverContextTask; in SimpleRequest_WriteAsynchronouslyInParts_Succeeds()
150 HttpListenerContext serverContext = await serverContextTask; in SimpleRequest_WriteSynchronouslyInParts_Succeeds()
178 HttpListenerContext serverContext = await serverContextTask; in SimpleRequest_WriteAynchronouslyEmpty_Succeeds()
201 HttpListenerContext serverContext = await serverContextTask; in SimpleRequest_WriteSynchronouslyEmpty_Succeeds()
396 HttpListenerContext context = await listener.GetContextAsync(); in Write_HeadersToClosedConnectionAsynchronously_ThrowsHttpListenerException()
435 HttpListenerContext context = await listener.GetContextAsync(); in Write_HeadersToClosedConnectionSynchronously_ThrowsHttpListenerException()
475 HttpListenerContext context = await listener.GetContextAsync(); in Write_ContentToClosedConnectionAsynchronously_ThrowsHttpListenerException()
[all …]
H A DHttpListenerAuthenticationTests.cs253 HttpListenerContext context = await _listener.GetContextAsync(); in AuthenticationSchemeSelectorDelegate_ReturnsInvalidAuthenticationScheme_PerformsNoAuthentication()
386 HttpListenerContext context = await _listener.GetContextAsync(); in Realm_SetWithoutBasicAuthenticationScheme_SendsNoChallengeToClient()
409 … Task<HttpListenerContext> serverTask = Task.Run(() => _listener.GetContext(), tokenSource.Token); in AuthenticationFailure()
427 Task<HttpListenerContext> serverTask = _listener.GetContextAsync(); in AuthenticationFailureAsyncContext()
443 Task<HttpListenerContext> serverContextTask = _listener.GetContextAsync(); in ValidateNullUser()
452 HttpListenerContext listenerContext = await serverContextTask; in ValidateNullUser()
463 Task<HttpListenerContext> serverContextTask = _listener.GetContextAsync(); in ValidateValidUser()
471 HttpListenerContext listenerContext = await serverContextTask; in ValidateValidUser()
H A DWebSocketTests.cs39 Task<HttpListenerContext> serverContextTask = _listener.GetContextAsync(); in AcceptWebSocketAsync_NullSubProtocol_Succeeds()
46 HttpListenerContext listenerContext = await serverContextTask; in AcceptWebSocketAsync_NullSubProtocol_Succeeds()
H A DSimpleHttpTests.cs127 Task<HttpListenerContext> server = _listener.GetContextAsync(); in UnknownHeaders_Success()
148 HttpListenerContext context = await server; in UnknownHeaders_Success()
/dports/lang/mono/mono-5.10.1.57/mcs/class/System/System.Net/
H A DHttpListener.cs227 var all = new HttpListenerContext [keys.Count]; in Cleanup()
243 var ctxs = (HttpListenerContext []) ctx_queue.ToArray (typeof (HttpListenerContext)); in Cleanup()
270 HttpListenerContext ctx = GetContextFromQueue (); in BeginGetContext()
283 public HttpListenerContext EndGetContext (IAsyncResult asyncResult) in EndGetContext()
305 HttpListenerContext context = ares.GetContext (); in EndGetContext()
318 public HttpListenerContext GetContext () in GetContext()
355 public Task<HttpListenerContext> GetContextAsync () in GetContextAsync()
367 HttpListenerContext GetContextFromQueue () in GetContextFromQueue()
372 HttpListenerContext context = (HttpListenerContext) ctx_queue [0]; in GetContextFromQueue()
377 internal void RegisterContext (HttpListenerContext context) in RegisterContext()
[all …]
H A DListenerAsyncResult.cs40 HttpListenerContext context;
85 internal void Complete (HttpListenerContext context) in Complete()
90 internal void Complete (HttpListenerContext context, bool synch) in Complete()
129 internal HttpListenerContext GetContext () in GetContext()
H A DHttpListener.platformnotsupported.cs119 public HttpListenerContext EndGetContext (IAsyncResult asyncResult) in EndGetContext()
124 public HttpListenerContext GetContext () in GetContext()
144 public Task<HttpListenerContext> GetContextAsync () in GetContextAsync()
H A DHttpListenerContext.platformnotsupported.cs34 public sealed class HttpListenerContext { class
37 HttpListenerContext () in HttpListenerContext() method in System.Net.HttpListenerContext
H A DHttpListenerContext.cs37 public sealed class HttpListenerContext { class
46 internal HttpListenerContext (HttpConnection cnc) in HttpListenerContext() method in System.Net.HttpListenerContext
/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/System/net/System/Net/
H A DHttpListenerResponse.cs39 private HttpListenerContext m_HttpContext;
58 private HttpListenerContext HttpListenerContext { property in System.Net.HttpListenerResponse
66 return HttpListenerContext.Request;
345 HttpListenerContext.Abort(); in Abort()
372 HttpListenerContext.Close(); in Close()
404 HttpListenerContext.Close(); in Dispose()
446 HttpListenerContext.Close(); in NonBlockingCloseCallback()
485 HttpListenerContext.SetAuthenticationHeaders(); in SendHeaders()
561 HttpListenerContext.EnsureBoundHandle(); in SendHeaders()
565 HttpListenerContext.RequestQueueHandle, in SendHeaders()
[all …]
H A DHttpListenerRequest.cs112 httpListenerRequest.HttpListenerContext.RequestQueueHandle, in IOCompleted()
235 private HttpListenerContext m_HttpContext;
250 internal HttpListenerRequest(HttpListenerContext httpContext, RequestContextBase memoryBlob) in HttpListenerRequest()
297 internal HttpListenerContext HttpListenerContext { property in System.Net.HttpListenerRequest
446 … m_RequestStream = HasEntityBody ? new HttpRequestStream(HttpListenerContext) : Stream.Null;
456 IPrincipal user = HttpListenerContext.User;
689 if (HttpListenerContext.PromoteCookiesToRfc2965) {
788 HttpListenerContext.EnsureBoundHandle(); in AsyncProcessClientCertificate()
836 HttpListenerContext.RequestQueueHandle, in AsyncProcessClientCertificate()
934 HttpListenerContext.RequestQueueHandle, in ProcessClientCertificate()
[all …]
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Net.HttpListener/src/System/Net/Windows/
H A DHttpListenerRequest.Windows.cs37 private HttpListenerContext _httpContext;
50 internal HttpListenerRequest(HttpListenerContext httpContext, RequestContextBase memoryBlob) in HttpListenerRequest()
107 internal HttpListenerContext HttpListenerContext => _httpContext; field in System.Net.HttpListenerRequest
224 … _requestStream = HasEntityBody ? new HttpRequestStream(HttpListenerContext) : Stream.Null;
235 IPrincipal user = HttpListenerContext.User;
380 …asyncResult = new ListenerClientCertAsyncResult(HttpListenerContext.RequestQueueBoundHandle, this,… in BeginGetClientCertificateCore()
390 HttpListenerContext.RequestQueueHandle, in BeginGetClientCertificateCore()
432 …asyncResult = new ListenerClientCertAsyncResult(HttpListenerContext.RequestQueueBoundHandle, this,… in BeginGetClientCertificateCore()
489 HttpListenerContext.RequestQueueHandle, in GetClientCertificateCore()
559 return HttpListenerContext.Listener.GetChannelBindingFromTls(_connectionId); in GetChannelBinding()
H A DHttpListenerResponse.Windows.cs42 internal HttpListenerResponse(HttpListenerContext httpContext) : this() in HttpListenerResponse()
110 HttpListenerContext.Abort(); in Abort()
161 HttpListenerContext.Close(); in Close()
185 HttpListenerContext.Close(); in Dispose()
194 _responseStream = new HttpResponseStream(HttpListenerContext); in EnsureResponseStream()
210 HttpListenerContext.Close(); in NonBlockingCloseCallback()
252 HttpListenerContext.SetAuthenticationHeaders(); in SendHeaders()
304 HttpListenerContext.RequestQueueHandle, in SendHeaders()
331 HttpListenerContext.RequestQueueHandle, in SendHeaders()
435 …if (HttpListenerContext.MutualAuthentication != null && HttpListenerContext.MutualAuthentication.L… in ComputeCoreHeaders()
[all …]
H A DHttpListenerContext.Windows.cs15 public sealed unsafe partial class HttpListenerContext class
19 internal HttpListenerContext(HttpListener httpListener, RequestContextBase memoryBlob) in HttpListenerContext() method in System.Net.HttpListenerContext
/dports/lang/mono/mono-5.10.1.57/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Http/
H A DHttpServerTransportSink.cs84 internal void HandleRequest (HttpListenerContext context) in HandleRequest()
149 …static void WriteOut (HttpListenerContext context, ITransportHeaders responseHeaders, Stream respo… in WriteOut()
192 HttpListenerContext context;
195 public HttpListenerContext Context { get { return context; } }
198 public ContextWithId (HttpListenerContext context) in ContextWithId()
/dports/lang/mono/mono-5.10.1.57/mcs/class/System/Test/System.Net/
H A DHttpListener2Test.cs276 HttpListenerContext ctx = _listener.GetContext (); in Test7()
296 HttpListenerContext ctx = _listener.GetContext (); in Test8()
406 HttpListenerContext c = _listener.GetContext (); in Test14()
449 HttpListenerContext c = _listener.GetContext (); in Test15()
476 HttpListenerContext c = _listener.GetContext (); in Test16()
497 HttpListenerContext ctx = _listener.GetContext (); in Test17()
517 HttpListenerContext ctx = _listener.GetContext (); in Test_MultipleClosesOnOuputStreamAllowed()
550 HttpListenerContext context = _listener.GetContext(); in ReceiveCookiesFromClient()
755 HttpListenerContext c = l.EndGetContext (ar); in callback()
781 HttpListenerContext ctx = listener.GetContext (); in Test_MultipleConnections()
[all …]
H A DHttpListenerRequestTest.cs52 HttpListenerContext ctx; in HasEntityBody()
164 HttpListenerContext ctx = listener.GetContext (); in HttpMethod()
202 HttpListenerContext ctx = listener.GetContext (); in HttpRequestUriIsNotDecoded()
233 HttpListenerContext ctx = listener.GetContext (); in HttpRequestIsLocal()
304 HttpListenerContext ctx = listener.GetContext (); in HttpRequestIgnoreBadCookies()
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Net.HttpListener/ref/
H A DSystem.Net.HttpListener.cs28 …public System.Net.HttpListenerContext EndGetContext(System.IAsyncResult asyncResult) { throw null;… in EndGetContext()
29 public System.Net.HttpListenerContext GetContext() { throw null; } in GetContext()
30 …public System.Threading.Tasks.Task<System.Net.HttpListenerContext> GetContextAsync() { throw null;… in GetContextAsync()
45 public sealed partial class HttpListenerContext class
47 internal HttpListenerContext() { } in HttpListenerContext() method in System.Net.HttpListenerContext
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Net.HttpListener/src/System/Net/
H A DHttpListenerResponse.cs15 private HttpListenerContext _httpContext;
53 private HttpListenerContext HttpListenerContext => _httpContext; field in System.Net.HttpListenerResponse
55 private HttpListenerRequest HttpListenerRequest => HttpListenerContext.Request;
/dports/lang/mono/mono-5.10.1.57/mcs/class/System.ServiceModel/System.ServiceModel.Channels.Http/
H A DHttpContextInfo.cs72 public HttpStandaloneContextInfo (HttpListenerContext ctx) in HttpStandaloneContextInfo()
79 HttpListenerContext ctx;
83 public HttpListenerContext Source {

12345