跳到主要内容
版本:Next

ServerResponse <CTX>

Hierarchy

Index

Constructors

constructor

Methods

blob

  • blob(data: Buffer): any

fail

json

  • json(data: Record<any, any>): any

success

text

  • text(data: string): any

staticBLOB_TPL

  • BLOB_TPL<CTX>(data: Buffer, isSuccess: boolean, ctx: CTX): unknown

staticJSON_TPL

  • JSON_TPL<CTX>(data: Record<any, any>, isSuccess: boolean, ctx: CTX): unknown

staticTEXT_TPL

  • TEXT_TPL<CTX>(data: string, isSuccess: boolean, ctx: CTX): unknown