mirror of https://gitee.com/bigwinds/arangodb
24 lines
586 B
Markdown
24 lines
586 B
Markdown
////////////////////////////////////////////////////////////////////////////////
|
|
/// @startDocuBlock JSF_foxx_BaseMiddleware_response_set
|
|
///
|
|
/// `response.set(key, value)`
|
|
///
|
|
/// Set a header attribute, for example:
|
|
///
|
|
/// @EXAMPLES
|
|
///
|
|
/// ```js
|
|
/// response.set("Content-Length", 123);
|
|
/// response.set("Content-Type", "text/plain");
|
|
/// ```
|
|
///
|
|
/// or alternatively:
|
|
///
|
|
/// ```js
|
|
/// response.set({
|
|
/// "Content-Length": "123",
|
|
/// "Content-Type": "text/plain"
|
|
/// });
|
|
/// ```
|
|
/// @endDocuBlock
|
|
//////////////////////////////////////////////////////////////////////////////// |