32 references to NativeRequest
Microsoft.AspNetCore.Server.IIS (32)
Core\IISHttpContext.FeatureCollection.cs (6)
387
NativeRequest
->pSslInfo != null &&
388
NativeRequest
->pSslInfo->pClientCertInfo != null &&
389
NativeRequest
->pSslInfo->pClientCertInfo->pCertEncoded != null &&
390
NativeRequest
->pSslInfo->pClientCertInfo->CertEncodedSize != 0)
393
var rawCertificateCopy = new byte[
NativeRequest
->pSslInfo->pClientCertInfo->CertEncodedSize];
394
Marshal.Copy((IntPtr)
NativeRequest
->pSslInfo->pClientCertInfo->pCertEncoded, rawCertificateCopy, 0, rawCertificateCopy.Length);
src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (26)
135
get { return
NativeRequest
->RequestId; }
136
set {
NativeRequest
->RequestId = value; }
139
internal ulong ConnectionId =>
NativeRequest
->ConnectionId;
141
internal ulong RawConnectionId =>
NativeRequest
->RawConnectionId;
143
internal HTTP_VERB VerbId =>
NativeRequest
->Verb;
145
internal ulong UrlContext =>
NativeRequest
->UrlContext;
147
internal ushort UnknownHeaderCount =>
NativeRequest
->Headers.UnknownHeaderCount;
153
return
NativeRequest
->pSslInfo == null ? SslStatus.Insecure :
154
NativeRequest
->pSslInfo->SslClientCertNegotiated == 0 ? SslStatus.NoClientCert :
159
internal bool IsHttp2 => (
NativeRequest
->Flags & PInvoke.HTTP_REQUEST_FLAG_HTTP2) != 0;
161
internal bool IsHttp3 => (
NativeRequest
->Flags & PInvoke.HTTP_REQUEST_FLAG_HTTP3) != 0;
225
var verb =
NativeRequest
->Verb;
231
else if (verb == HTTP_VERB.HttpVerbUnknown && !
NativeRequest
->pUnknownVerb.Equals(null))
234
return HeaderEncoding.GetString(
NativeRequest
->pUnknownVerb,
NativeRequest
->UnknownVerbLength, useLatin1: false);
267
if (!
NativeRequest
->pRawUrl.Equals(null) &&
NativeRequest
->RawUrlLength > 0)
269
return Marshal.PtrToStringAnsi((IntPtr)
NativeRequest
->pRawUrl.Value,
NativeRequest
->RawUrlLength);
276
if (!
NativeRequest
->pRawUrl.Equals(null) &&
NativeRequest
->RawUrlLength > 0)
278
return new Span<byte>(
NativeRequest
->pRawUrl,
NativeRequest
->RawUrlLength);
286
return new CookedUrl(
NativeRequest
->CookedUrl);
299
var major =
NativeRequest
->Version.MajorVersion;
300
var minor =
NativeRequest
->Version.MinorVersion;