trait TapirStaticContentEndpoints extends AnyRef
Static content endpoints, including files and resources.
- Alphabetic
- By Inheritance
- TapirStaticContentEndpoints
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def staticFileGetServerEndpoint[F[_]](prefix: EndpointInput[Unit])(systemPath: String): ServerEndpoint[Any, F]
A server endpoint, which exposes a single file from local storage found at
systemPath, using the givenpath.A server endpoint, which exposes a single file from local storage found at
systemPath, using the givenpath.staticFileGetServerEndpoint("static" / "hello.html")("/home/app/static/data.html")
- def staticFilesGetEndpoint(prefix: EndpointInput[Unit]): PublicEndpoint[StaticInput, StaticErrorOutput, StaticOutput[FileRange], Any]
- lazy val staticFilesGetEndpoint: PublicEndpoint[StaticInput, StaticErrorOutput, StaticOutput[FileRange], Any]
- def staticFilesGetServerEndpoint[F[_]](prefix: EndpointInput[Unit])(systemPath: String, options: FilesOptions[F] = FilesOptions.default[F]): ServerEndpoint[Any, F]
A server endpoint, which exposes files from local storage found at
systemPath, using the givenprefix.A server endpoint, which exposes files from local storage found at
systemPath, using the givenprefix. Typically, the prefix is a path, but it can also contain other inputs. For example:staticFilesGetServerEndpoint("static" / "files")("/home/app/static")
A request to
/static/files/css/styles.csswill try to read the/home/app/static/css/styles.cssfile. - def staticFilesHeadServerEndpoint[F[_]](prefix: EndpointInput[Unit])(systemPath: String, options: FilesOptions[F] = FilesOptions.default[F]): ServerEndpoint[Any, F]
A server endpoint, used to verify if sever supports range requests for file under particular path Additionally it verify file existence and returns its size
- def staticFilesServerEndpoints[F[_]](prefix: EndpointInput[Unit])(systemPath: String, options: FilesOptions[F] = FilesOptions.default[F]): List[ServerEndpoint[Any, F]]
Create a pair of endpoints (head, get) for exposing files from local storage found at
systemPath, using the givenprefix.Create a pair of endpoints (head, get) for exposing files from local storage found at
systemPath, using the givenprefix. Typically, the prefix is a path, but it can also contain other inputs. For example:staticFilesServerEndpoints("static" / "files")("/home/app/static")
A request to
/static/files/css/styles.csswill try to read the/home/app/static/css/styles.cssfile. - def staticResourceGetServerEndpoint[F[_]](prefix: EndpointInput[Unit])(classLoader: ClassLoader, resourcePath: String, options: FilesOptions[F] = FilesOptions.default[F]): ServerEndpoint[Any, F]
A server endpoint, which exposes a single resource available from the given
classLoaderatresourcePath, using the givenpath.A server endpoint, which exposes a single resource available from the given
classLoaderatresourcePath, using the givenpath.staticResourceGetServerEndpoint("static" / "hello.html")(classOf[App].getClassLoader, "app/data.html")
- def staticResourcesGetEndpoint(prefix: EndpointInput[Unit]): PublicEndpoint[StaticInput, StaticErrorOutput, StaticOutput[InputStreamRange], Any]
- lazy val staticResourcesGetEndpoint: PublicEndpoint[StaticInput, StaticErrorOutput, StaticOutput[InputStreamRange], Any]
- def staticResourcesGetServerEndpoint[F[_]](prefix: EndpointInput[Unit])(classLoader: ClassLoader, resourcePrefix: String, options: FilesOptions[F] = FilesOptions.default[F]): ServerEndpoint[Any, F]
A server endpoint, which exposes resources available from the given
classLoader, using the givenprefix.A server endpoint, which exposes resources available from the given
classLoader, using the givenprefix. Typically, the prefix is a path, but it can also contain other inputs. For example:staticResourcesGetServerEndpoint("static" / "files")(classOf[App].getClassLoader, "app")
A request to
/static/files/css/styles.csswill try to read the/app/css/styles.cssresource. - def staticResourcesHeadServerEndpoint[F[_]](prefix: EndpointInput[Unit])(classLoader: ClassLoader, resourcePath: String, options: FilesOptions[F] = FilesOptions.default[F]): ServerEndpoint[Any, F]
A server endpoint, which can be used to verify the existence of a resource under given path.
- def staticResourcesServerEndpoints[F[_]](prefix: EndpointInput[Unit])(classLoader: ClassLoader, resourcePath: String, options: FilesOptions[F] = FilesOptions.default[F]): List[ServerEndpoint[Any, F]]
Create a pair of endpoints (head, get) for exposing resources available from the given
classLoader, using the givenprefix.Create a pair of endpoints (head, get) for exposing resources available from the given
classLoader, using the givenprefix. Typically, the prefix is a path, but it can also contain other inputs. For example:resourcesServerEndpoints("static" / "files")(classOf[App].getClassLoader, "app")
A request to
/static/files/css/styles.csswill try to read the/app/css/styles.cssresource. - final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)