26 references to Header
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
EndpointMetadataApiDescriptionProvider.cs (1)
267return (BindingSource.Header, headerAttribute.Name ?? parameter.Name ?? string.Empty, false, parameterType);
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (6)
DefaultApiDescriptionProviderTest.cs (5)
1476Assert.Same(BindingSource.Header, parameter.Source); 1562Assert.Same(BindingSource.Header, userId.Source); 1750Assert.Same(BindingSource.Header, userId.Source); 1975Assert.Same(BindingSource.Header, name.Source); 2010Assert.Same(BindingSource.Header, userId.Source);
EndpointMetadataApiDescriptionProviderTest.cs (1)
575Assert.Equal(BindingSource.Header, param.Source);
Microsoft.AspNetCore.Mvc.Core (3)
FromHeaderAttribute.cs (1)
31public BindingSource BindingSource => BindingSource.Header;
ModelBinding\Binders\HeaderModelBinder.cs (1)
15/// has the binding source <see cref="BindingSource.Header"/>.
ModelBinding\Binders\HeaderModelBinderProvider.cs (1)
23!bindingInfo.BindingSource.CanAcceptDataFrom(BindingSource.Header))
Microsoft.AspNetCore.Mvc.Core.Test (12)
ModelBinding\Binders\BodyModelBinderProviderTest.cs (1)
17BindingSource.Header,
ModelBinding\Binders\FormFileModelBinderTest.cs (1)
437.BindingDetails(bd => bd.BindingSource = BindingSource.Header);
ModelBinding\Binders\HeaderModelBinderProviderTest.cs (6)
59context.BindingInfo.BindingSource = BindingSource.Header; 82context.BindingInfo.BindingSource = BindingSource.Header; 108context.BindingInfo.BindingSource = BindingSource.Header; 130context.BindingInfo.BindingSource = BindingSource.Header; 152context.BindingInfo.BindingSource = BindingSource.Header; 169context.BindingInfo.BindingSource = BindingSource.Header;
ModelBinding\Binders\HeaderModelBinderTests.cs (2)
392metadataProvider.ForType(modelType).BindingDetails(d => d.BindingSource = BindingSource.Header); 401.BindingDetails(bd => bd.BindingSource = BindingSource.Header);
ModelBinding\Binders\ServicesModelBinderProviderTest.cs (1)
16BindingSource.Header,
ModelBinding\Metadata\BindingSourceTest.cs (1)
72BindingSource.Header,
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
ApiExplorerTest.cs (1)
1080Assert.Equal(BindingSource.Header.Id, referrer.Source);
Microsoft.AspNetCore.Mvc.IntegrationTests (1)
HeaderModelBinderIntegrationTest.cs (1)
270BindingSource = BindingSource.Header
Microsoft.AspNetCore.OpenApi (2)
Extensions\JsonNodeSchemaExtensions.cs (1)
344static bool SupportsNullableProperty(BindingSource bindingSource) =>bindingSource == BindingSource.Header
Services\OpenApiDocumentService.cs (1)
433else if (parameter.Source == BindingSource.Header && _disallowedHeaderParameters.Contains(parameter.Name))