<linkrel="alternate icon"type="image/png"href="../../../favicon-32x32.png"><styletype="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><bodyclass="rustdoc trait"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><navclass="sidebar"><divclass="sidebar-menu"role="button">☰</div><ahref='../../../actix_web_httpauth/index.html'><divclass='logo-container rust-logo'><imgsrc='../../../rust-logo.png'alt='logo'></div></a><pclass="location">Trait Challenge</p><divclass="sidebar-elems"><divclass="block items"><aclass="sidebar-title"href="#required-methods">Required Methods</a><divclass="sidebar-links"><ahref="#tymethod.to_bytes">to_bytes</a></div><aclass="sidebar-title"href="#implementors">Implementors</a></div><pclass="location"><ahref="../../index.html">actix_web_httpauth</a>::<wbr><ahref="../index.html">headers</a>::<wbr><ahref="index.html">www_authenticate</a></p><divid="sidebar-vars"data-name="Challenge"data-ty="trait"data-relpath=""></div><scriptdefersrc="sidebar-items.js"></script></div></nav><divclass="theme-picker"><buttonid="theme-picker"aria-label="Pick another theme!"aria-haspopup="menu"><imgsrc="../../../brush.svg"width="18"height="18"alt="Pick another theme!"></button><divid="theme-choices"role="menu"></div></div><navclass="sub"><formclass="search-form"><divclass="search-container"><div><selectid="crate-search"><optionvalue="All crates">All crates</option></select><inputclass="search-input"name="search"disabledautocomplete="off"spellcheck="false"placeholder="Click or press ‘S’ to search, ‘?’ for more options…"type="search"></div><buttontype="button"class="help-button">?</button>
}</pre></div><divclass="docblock"><p>Authentication challenge for <code>WWW-Authenticate</code> header.</p>
</div><h2id="required-methods"class="small-section-header">Required methods<ahref="#required-methods"class="anchor"></a></h2><divclass="methods"><h3id="tymethod.to_bytes"class="method"><code>fn <ahref="#tymethod.to_bytes"class="fnname">to_bytes</a>(&self) -><aclass="struct"href="https://docs.rs/bytes/1.0.1/bytes/bytes/struct.Bytes.html"title="struct bytes::bytes::Bytes">Bytes</a></code><aclass="srclink"href="../../../src/actix_web_httpauth/headers/www_authenticate/challenge/mod.rs.html#12"title="goto source code">[src]</a></h3><divclass="docblock"><p>Converts the challenge into a bytes suitable for HTTP transmission.</p>