Preparing search index...
The search index is not available
@tarpit/http
@tarpit/http
HttpStatic
Class HttpStatic
Hierarchy
HttpStatic
Index
Constructors
constructor
Properties
cache_
control
cache_
size
config
dotfile
file_
watcher
root
vary
Methods
init_
header
serve
Constructors
constructor
new
Http
Static
(
config
)
:
HttpStatic
Parameters
config
:
TpConfigData
Returns
HttpStatic
Properties
Private
cache_
control
cache_
control
:
undefined
|
ResponseCacheControl
= ...
Private
cache_
size
cache_
size
:
number
= ...
Private
config
config
:
TpConfigData
Private
dotfile
dotfile
:
"ignore"
|
"allow"
|
"deny"
= ...
Private
Readonly
file_
watcher
file_
watcher
:
FileWatcher
Private
root
root
:
string
= ...
Private
vary
vary
:
undefined
|
string
[]
|
"*"
= ...
Methods
Private
init_
header
init_
header
(
file
,
res
,
options
)
:
void
Parameters
file
:
SearchedFile
res
:
TpResponse
options
:
Pick
<
ServeStaticOptions
,
"vary"
|
"cache_control"
>
Returns
void
serve
serve
(
request
,
response
,
options
?
)
:
Promise
<
ReadStream
>
Parameters
request
:
TpRequest
response
:
TpResponse
Optional
options
:
ServeStaticOptions
Returns
Promise
<
ReadStream
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
src
errors
finish.ts
Finish
finish
tp-http-finish.ts
TpHttpFinish
TpHttpErrorDescription
TpHttpErrorHeader
throw_bad_request
throw_forbidden
throw_http_finish
throw_internal_server_error
throw_not_found
throw_not_modified
throw_precondition_failed
throw_unauthorized
builtin
body
form-body.ts
FormBody
json-body.ts
JsonBody
mime-body.ts
MimeBody
raw-body.ts
RawBody
text-body.ts
TextBody
dict
params.ts
Params
path-args.ts
PathArgs
header.ts
RequestHeaders
guard.ts
Guard
http-context.ts
HttpContext
response-cache.ts
ResponseCache
tp-request.ts
TpRequest
tp-response.ts
TpResponse
tp-websocket.ts
TpWebSocket
services
http-authenticator.ts
HttpAuthenticator
http-body-formatter.ts
HttpBodyFormatter
http-cache-proxy.ts
HttpCacheProxy
http-hooks.ts
HttpHooks
http-inspector.ts
HttpInspector
http-static.ts
HttpStatic
http-server.module.ts
HttpServerModule
__types__.ts
HttpCredentials
HttpHandlerDescriptor
HttpSession
TpRouterOptions
TpWebSocketOptions
ApiMethod
HttpResponseType
ProxyConfig
RequestHandler
RequestHandlerWithPathArgs
SocketHandler
TpHttpResponseType
UpgradeHandler
UpgradeHandlerWithPathArgs
annotations.ts
Auth
CacheUnder
ContentType
Delete
Get
Post
Put
Route
RouteProps
TpRouter
WS
Auth
CacheUnder
ContentType
Delete
Get
Post
Put
Route
TpRouter
WS
Generated using
TypeDoc