Skip to content

thinkjs/think-meta

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

think-meta

Build Status Coverage Status npm

Show meta for ThinkJS 3.x

Install

npm install think-meta

How to use

config file src/config/middleware.js

const meta = require('think-meta');
module.exports = [
  {
    handle: meta,
    options: {

    }
  }
]

Support options

{
  requestTimeout: 10 * 1000, //request timeout, default is 10s
  requestTimeoutCallback: (ctx, options) => {}, //request timeout callback
  sendPowerBy: true,  //send powerby
  sendResponseTime: true, //send response time
  logRequest: true //log request
}