UNPKG

@tsed/common

Version:
21 lines (20 loc) 555 B
/** * Sets the response Location HTTP header to the specified path parameter. * * ```typescript * @Location('/foo/bar') * @Location('http://example.com') * @Location('back') * private myMethod() { * * } * ``` * * A path value of “back” has a special meaning, it refers to the URL specified in the `Referer` header of the request. If the `Referer` header was not specified, it refers to “/”. * * @param location * @returns {Function} * @decorator * @operation */ export declare function Location(location: string): Function;