UNPKG

@nelts/http

Version:

http for nelts worker

10 lines (9 loc) 327 B
import 'reflect-metadata'; import RouterMethod from './method'; import RouterPath from './path'; export default function Head(path?: string): MethodDecorator { return (target, property, descriptor) => { path && RouterPath(path)(target, property, descriptor); RouterMethod('HEAD')(target, property, descriptor); } }