TapirStaticContentEndpoints
Static content endpoints, including files and resources.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
Value members
Concrete methods
A server endpoint, which exposes a single file from local storage found at systemPath
, using the given path
.
A server endpoint, which exposes a single file from local storage found at systemPath
, using the given path
.
staticFileGetServerEndpoint("static" / "hello.html")("/home/app/static/data.html")
Attributes
A server endpoint, which exposes files from local storage found at systemPath
, using the given prefix
. Typically, the prefix is a path, but it can also contain other inputs. For example:
A server endpoint, which exposes files from local storage found at systemPath
, using the given prefix
. 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.css
will try to read the /home/app/static/css/styles.css
file.
Attributes
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
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
Attributes
Create a pair of endpoints (head, get) for exposing files from local storage found at systemPath
, using the given prefix
. Typically, the prefix is a path, but it can also contain other inputs. For example:
Create a pair of endpoints (head, get) for exposing files from local storage found at systemPath
, using the given prefix
. 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.css
will try to read the /home/app/static/css/styles.css
file.
Attributes
A server endpoint, which exposes a single resource available from the given classLoader
at resourcePath
, using the given path
.
A server endpoint, which exposes a single resource available from the given classLoader
at resourcePath
, using the given path
.
staticResourceGetServerEndpoint("static" / "hello.html")(classOf[App].getClassLoader, "app/data.html")
Attributes
A server endpoint, which exposes resources available from the given classLoader
, using the given prefix
. Typically, the prefix is a path, but it can also contain other inputs. For example:
A server endpoint, which exposes resources available from the given classLoader
, using the given prefix
. 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.css
will try to read the /app/css/styles.css
resource.
Attributes
A server endpoint, which can be used to verify the existence of a resource under given path.
A server endpoint, which can be used to verify the existence of a resource under given path.
Attributes
Create a pair of endpoints (head, get) for exposing resources available from the given classLoader
, using the given prefix
. Typically, the prefix is a path, but it can also contain other inputs. For example:
Create a pair of endpoints (head, get) for exposing resources available from the given classLoader
, using the given prefix
. 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.css
will try to read the /app/css/styles.css
resource.