37 lines
4.6 KiB
HTML
37 lines
4.6 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<title>PathMapping (handy_http_handlers.path_handler.PathMapping)</title>
|
|
<meta charset="utf-8" />
|
|
<meta content="width=device-width, initial-scale=1" name="viewport" />
|
|
<link href="style.css" rel="stylesheet" />
|
|
<script src="script.js" type="text/javascript"></script>
|
|
|
|
|
|
<link href="search-results.html" rel="prefetch" />
|
|
</head>
|
|
<body>
|
|
<div id="page-header">
|
|
<div id="logotype">
|
|
<span>Documentation</span>
|
|
<nav>
|
|
<a href="http://dlang.org/">Dlang.org</a>
|
|
</nav>
|
|
</div>
|
|
|
|
<form action="search-docs.html" id="search">
|
|
<input name="searchTerm" placeholder="Find a symbol name..." type="search" />
|
|
<input type="submit" value="Go" />
|
|
</form>
|
|
</div>
|
|
<div id="page-body">
|
|
<div id="page-content">
|
|
<h1>PathMapping</h1><div class="breadcrumbs"><a class="breadcrumb" href="handy_http_handlers.html">handy_http_handlers</a> <a class="breadcrumb" href="handy_http_handlers.path_handler.html">path_handler</a> </div><div><div class="documentation-comment synopsis"><div><p>A user-defined attribute that, when added to a function, allows that
|
|
function to be registered automatically by a path handler when you call
|
|
its <tt class="inline-code">registerHandlers</tt> method on the module containing the function.</p></div></div></div><div class="annotated-prototype"><div class="aggregate-prototype"><div class="attributes"></div><span class="builtin-type">struct</span> PathMapping {<div class="aggregate-member"><a href="handy_http_handlers.path_handler.PathMapping.method.html"><div class="attributes"></div><tt class="highlighted"><span class="hid">HttpMethod</span></tt> <span class="name">method</span>;</a></div><div class="aggregate-member"><a href="handy_http_handlers.path_handler.PathMapping.pattern.html"><div class="attributes"></div><tt class="highlighted"><span class="type">string</span></tt> <span class="name">pattern</span>;</a></div>}</div></div><h2 id="members"><a class="header-anchor" href="#members">Members</a></h2><h3 class="member-list-header hide-from-toc" id="variable"><a class="header-anchor" href="#variable">Variables</a></h3><dl class="member-list native"><dt><a href="handy_http_handlers.path_handler.PathMapping.method.html">method</a><div class="simplified-prototype" style="max-width: 19ch;"><tt class="highlighted"><span class="hid">HttpMethod</span></tt> <span class="name">method</span>;</div></dt><dd><div><p>The HTTP method that the mapping accepts.</p></div></dd><dt><a href="handy_http_handlers.path_handler.PathMapping.pattern.html">pattern</a><div class="simplified-prototype" style="max-width: 16ch;"><tt class="highlighted"><span class="type">string</span></tt> <span class="name">pattern</span>;</div></dt><dd><div><p>The path pattern for the mapping.</p></div></dd></dl><div></div></div>
|
|
<div id="page-nav"><a class="parent" href="handy_http_handlers.html">handy_http_handlers</a> <a class="parent" href="handy_http_handlers.path_handler.html">path_handler</a>
|
|
<span class="type-separator">classes</span><ul><li><a class="class" href="handy_http_handlers.path_handler.PathHandler.html">PathHandler</a></li><li><a class="class" href="handy_http_handlers.path_handler.PathHandlerContextData.html">PathHandlerContextData</a></li></ul><span class="type-separator">functions</span><ul><li><a class="function" href="handy_http_handlers.path_handler.getMethodBit.html">getMethodBit</a></li><li><a class="function" href="handy_http_handlers.path_handler.getPathParamAs.html">getPathParamAs</a></li><li><a class="function" href="handy_http_handlers.path_handler.getPathParams.html">getPathParams</a></li><li><a class="function" href="handy_http_handlers.path_handler.methodMaskFromAll.html">methodMaskFromAll</a></li><li><a class="function" href="handy_http_handlers.path_handler.methodMaskFromMethods.html">methodMaskFromMethods</a></li></ul><span class="type-separator">structs</span><ul><li><a class="struct" href="handy_http_handlers.path_handler.DeleteMapping.html">DeleteMapping</a></li><li><a class="struct" href="handy_http_handlers.path_handler.GetMapping.html">GetMapping</a></li><li><a class="struct" href="handy_http_handlers.path_handler.PatchMapping.html">PatchMapping</a></li><li><a class="struct current" href="handy_http_handlers.path_handler.PathMapping.html">PathMapping</a></li><li><a class="struct" href="handy_http_handlers.path_handler.PostMapping.html">PostMapping</a></li><li><a class="struct" href="handy_http_handlers.path_handler.PutMapping.html">PutMapping</a></li></ul></div>
|
|
</div>
|
|
<div id="page-footer">Page generated by <a href="https://github.com/adamdruppe/adrdox">adrdox</a></div>
|
|
</body>
|
|
</html> |