类的使用
cn.taketoday.http.CacheControl
使用CacheControl的程序包
程序包
说明
Contains a basic abstraction over client/server-side HTTP.
Provides the types that make up Infra functional web framework.
Standard controller implementations for the MVC framework use like Framework
-
cn.taketoday.http中CacheControl的使用
修饰符和类型方法说明CacheControl.cachePrivate()Add a "private" directive.CacheControl.cachePublic()Add a "public" directive.static CacheControlCacheControl.empty()Return an empty directive.CacheControl.immutable()Add an "immutable" directive.static CacheControlAdd a "max-age=" directive.static CacheControlAdd a "max-age=" directive.CacheControl.mustRevalidate()Add a "must-revalidate" directive.static CacheControlCacheControl.noCache()Add a "no-cache" directive.static CacheControlCacheControl.noStore()Add a "no-store" directive.CacheControl.noTransform()Add a "no-transform" directive.CacheControl.proxyRevalidate()Add a "proxy-revalidate" directive.Add an "s-maxage" directive.Add an "s-maxage" directive.CacheControl.staleIfError(long staleIfError, TimeUnit unit) Add a "stale-if-error" directive.CacheControl.staleIfError(Duration staleIfError) Add a "stale-if-error" directive.CacheControl.staleWhileRevalidate(long staleWhileRevalidate, TimeUnit unit) Add a "stale-while-revalidate" directive.CacheControl.staleWhileRevalidate(Duration staleWhileRevalidate) Add a "stale-while-revalidate" directive.参数类型为CacheControl的cn.taketoday.http中的方法修饰符和类型方法说明ResponseEntity.DefaultBuilder.cacheControl(CacheControl cacheControl) ResponseEntity.HeadersBuilder.cacheControl(CacheControl cacheControl) Set the caching directives for the resource, as specified by the HTTP 1.1Cache-Controlheader.voidHttpHeaders.setCacheControl(CacheControl cacheControl) Set a configuredCacheControlinstance as the new value of theCache-Controlheader. -
cn.taketoday.web中CacheControl的使用
声明为CacheControl的cn.taketoday.web中的字段返回CacheControl的cn.taketoday.web中的方法修饰符和类型方法说明final CacheControlWebContentGenerator.getCacheControl()Get theCacheControlinstance that builds the Cache-Control HTTP response header.参数类型为CacheControl的cn.taketoday.web中的方法修饰符和类型方法说明protected final voidWebContentGenerator.applyCacheControl(RequestContext response, CacheControl cacheControl) Set the HTTP Cache-Control header according to the given settings.final voidWebContentGenerator.setCacheControl(CacheControl cacheControl) Set theCacheControlinstance to build the Cache-Control HTTP response header. -
cn.taketoday.web.config中CacheControl的使用
参数类型为CacheControl的cn.taketoday.web.config中的方法修饰符和类型方法说明ResourceHandlerRegistration.setCacheControl(CacheControl cacheControl) Specify theCacheControlwhich should be used by the resource handler. -
cn.taketoday.web.handler.function中CacheControl的使用
修饰符和类型方法说明DefaultEntityResponseBuilder.cacheControl(CacheControl cacheControl) DefaultServerResponseBuilder.cacheControl(CacheControl cacheControl) EntityResponse.Builder.cacheControl(CacheControl cacheControl) Set the caching directives for the resource, as specified by the HTTP 1.1Cache-Controlheader.ServerResponse.HeadersBuilder.cacheControl(CacheControl cacheControl) Set the caching directives for the resource, as specified by the HTTP 1.1Cache-Controlheader. -
cn.taketoday.web.handler.mvc中CacheControl的使用
类型参数类型为CacheControl的cn.taketoday.web.handler.mvc中的字段修饰符和类型字段说明private final HashMap<PathPattern,CacheControl> WebContentInterceptor.cacheControlMappings修饰符和类型方法说明protected CacheControlWebContentInterceptor.lookupCacheControl(PathContainer path) Find aCacheControlinstance for the given parsedpath.参数类型为CacheControl的cn.taketoday.web.handler.mvc中的方法修饰符和类型方法说明voidWebContentInterceptor.addCacheMapping(CacheControl cacheControl, String... paths) Map specific URL paths to a specificCacheControl.