StaticFileOptions 클래스

정의

정적 파일 처리 옵션입니다.

public ref class StaticFileOptions : Microsoft::AspNetCore::StaticFiles::Infrastructure::SharedOptionsBase
public class StaticFileOptions : Microsoft.AspNetCore.StaticFiles.Infrastructure.SharedOptionsBase
type StaticFileOptions = class
    inherit SharedOptionsBase
Public Class StaticFileOptions
Inherits SharedOptionsBase
상속
StaticFileOptions

생성자

StaticFileOptions()

모든 요청 경로의 기본값

StaticFileOptions(SharedOptions)

모든 요청 경로의 기본값

속성

ContentTypeProvider

파일을 content-type에 매핑하는 데 사용됩니다.

DefaultContentType

ContentTypeProvider가 콘텐츠 형식을 결정할 수 없는 경우 요청의 기본 콘텐츠 형식입니다. 기본적으로 없음이 제공되므로 클라이언트가 직접 형식을 결정해야 합니다. http://www.w3.org/Protocols/rfc2616/rfc2616-sec7.html#sec7

FileProvider

리소스를 찾는 데 사용되는 파일 시스템입니다.

(다음에서 상속됨 SharedOptionsBase)
HttpsCompression

응답 압축 미들웨어를 사용할 수 있을 때 HTTPS 요청에 대해 파일을 압축해야 하는지를 나타냅니다. 기본값은 Compress입니다.

OnPrepareResponse

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

OnPrepareResponseAsync

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

RedirectToAppendTrailingSlash

경로 끝에 후행 슬래시를 추가하도록 리디렉션할지 여부를 나타냅니다. 상대 리소스 링크에는 이 작업이 필요할 수 있습니다.

(다음에서 상속됨 SharedOptionsBase)
RequestPath

정적 리소스에 매핑되는 상대 요청 경로입니다. 이 기본값은 사이트 루트 '/'입니다.

(다음에서 상속됨 SharedOptionsBase)
ServeUnknownFileTypes

파일이 인식할 수 있는 content-type이 아닌 경우 처리해야 하나요? 기본값: false입니다.

SharedOptions

여러 미들웨어 구성 요소에 공통적으로 적용되는 옵션입니다.

(다음에서 상속됨 SharedOptionsBase)

적용 대상