Preparing search index...
The search index is not available
Deepkit
Deepkit
http
HttpResultFormatter
Class HttpResultFormatter
Hierarchy
HttpResultFormatter
Index
Constructors
constructor
Properties
html
Content
Type
json
Content
Type
router
Methods
handle
handle
Binary
handle
Error
handle
Generic
Response
handle
Html
Response
handleJSONResponse
handle
Redirect
handle
Response
handle
Stream
handle
Type
Entity
handle
Undefined
handle
Unknown
set
Content
Type
If
Not
Set
Already
Constructors
constructor
new
Http
Result
Formatter
(
router
:
HttpRouter
)
:
HttpResultFormatter
Parameters
router:
HttpRouter
Returns
HttpResultFormatter
Properties
Protected
html
Content
Type
html
Content
Type
:
string
= 'text/html; charset=utf-8'
Protected
json
Content
Type
json
Content
Type
:
string
= 'application/json; charset=utf-8'
Protected
router
router
:
HttpRouter
Methods
handle
handle
(
result
:
SupportedHttpResult
, context
:
HttpResultFormatterContext
)
:
void
Parameters
result:
SupportedHttpResult
context:
HttpResultFormatterContext
Returns
void
handle
Binary
handle
Binary
(
result
:
Uint8Array
, context
:
HttpResultFormatterContext
)
:
void
Parameters
result:
Uint8Array
context:
HttpResultFormatterContext
Returns
void
handle
Error
handle
Error
(
error
:
Error
, context
:
HttpResultFormatterContext
)
:
void
Parameters
error:
Error
context:
HttpResultFormatterContext
Returns
void
handle
Generic
Response
handle
Generic
Response
(
result
:
Response
, context
:
HttpResultFormatterContext
)
:
void
Parameters
result:
Response
context:
HttpResultFormatterContext
Returns
void
handle
Html
Response
handle
Html
Response
(
result
:
HtmlResponse
, context
:
HttpResultFormatterContext
)
:
void
Parameters
result:
HtmlResponse
context:
HttpResultFormatterContext
Returns
void
handleJSONResponse
handleJSONResponse
(
result
:
JSONResponse
, context
:
HttpResultFormatterContext
)
:
void
Parameters
result:
JSONResponse
context:
HttpResultFormatterContext
Returns
void
handle
Redirect
handle
Redirect
(
result
:
Redirect
, context
:
HttpResultFormatterContext
)
:
void
Parameters
result:
Redirect
context:
HttpResultFormatterContext
Returns
void
handle
Response
handle
Response
(
context
:
HttpResultFormatterContext
)
:
void
Parameters
context:
HttpResultFormatterContext
Returns
void
handle
Stream
handle
Stream
(
stream
:
Readable
, context
:
HttpResultFormatterContext
)
:
void
Parameters
stream:
Readable
context:
HttpResultFormatterContext
Returns
void
handle
Type
Entity
handle
Type
Entity
<
T
>
(
classType
:
ClassType
<
T
>
, instance
:
T
, context
:
HttpResultFormatterContext
, route
?:
RouteConfig
)
:
void
Type Parameters
T
Parameters
classType:
ClassType
<
T
>
instance:
T
context:
HttpResultFormatterContext
Optional
route:
RouteConfig
Returns
void
handle
Undefined
handle
Undefined
(
result
:
undefined
|
null
, context
:
HttpResultFormatterContext
)
:
void
Parameters
result:
undefined
|
null
context:
HttpResultFormatterContext
Returns
void
handle
Unknown
handle
Unknown
(
result
:
any
, context
:
HttpResultFormatterContext
)
:
void
Parameters
result:
any
context:
HttpResultFormatterContext
Returns
void
Protected
set
Content
Type
If
Not
Set
Already
set
Content
Type
If
Not
Set
Already
(
response
:
HttpResponse
, contentType
:
string
)
:
void
Parameters
response:
HttpResponse
contentType:
string
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Modules
Deepkit
angular-
universal
api-
console-
api
api-
console-
module
app
broker
bson
core
core-
rxjs
create-
app
crypto
event
framework
framework-
debug-
api
http
injector
logger
mongo
mysql
orm
orm-
browser-
api
orm-
integration
postgres
rpc
rpc-
tcp
skeleton
sql
sqlite
stopwatch
template
type
type-
compiler
workflow
Http
Result
Formatter
constructor
html
Content
Type
json
Content
Type
router
handle
handle
Binary
handle
Error
handle
Generic
Response
handle
Html
Response
handleJSONResponse
handle
Redirect
handle
Response
handle
Stream
handle
Type
Entity
handle
Undefined
handle
Unknown
set
Content
Type
If
Not
Set
Already
Generated using
TypeDoc