Share via


StaticFileOptions.OnPrepareResponseAsync 속성

정의

상태 코드와 헤더가 설정된 후, 본문이 작성되기 전에 호출됩니다. 응답 헤더를 추가하거나 변경하는 데 사용할 수 있습니다.

public Func<Microsoft.AspNetCore.StaticFiles.StaticFileResponseContext,System.Threading.Tasks.Task> OnPrepareResponseAsync { get; set; }
member this.OnPrepareResponseAsync : Func<Microsoft.AspNetCore.StaticFiles.StaticFileResponseContext, System.Threading.Tasks.Task> with get, set
Public Property OnPrepareResponseAsync As Func(Of StaticFileResponseContext, Task)

속성 값

설명

OnPrepareResponse 은 이전에 OnPrepareResponseAsync호출됩니다.

적용 대상