Summary#
- Implements
GET /.well-known/atproto-didincrates/relay/ - Resolves the DID from the
Hostheader by looking up the handle in thehandlestable - Returns
200 text/plainwith the DID, or404if the host is not a registered handle - Strips port from
Hostheader (e.g.localhost:8080→localhost) before lookup
Test plan#
-
registered_handle_returns_did_as_plain_text— known handle returns 200 with DID body -
unregistered_host_returns_404— unknown host returns 404 -
response_content_type_is_text_plain— Content-Type istext/plain -
host_with_port_is_resolved_correctly—Host: alice.example.com:8080resolves correctly
Closes MM-151