@@ -15,6 +15,7 @@ import (
1515 "github.com/matrix-org/util"
1616)
1717
18+ // EXPERIMENTAL
1819// MakeJoinRequestsHandler is the http.Handler implementation for the make_join part of
1920// HandleMakeSendJoinRequests.
2021func MakeJoinRequestsHandler (s * Server , w http.ResponseWriter , req * http.Request ) {
@@ -53,6 +54,7 @@ func MakeJoinRequestsHandler(s *Server, w http.ResponseWriter, req *http.Request
5354 w .Write (b )
5455}
5556
57+ // EXPERIMENTAL
5658// MakeRespMakeJoin makes the response for a /make_join request, without verifying any signatures
5759// or dealing with HTTP responses itself.
5860func MakeRespMakeJoin (s * Server , room * ServerRoom , userID string ) (resp fclient.RespMakeJoin , err error ) {
@@ -84,6 +86,7 @@ func MakeRespMakeJoin(s *Server, room *ServerRoom, userID string) (resp fclient.
8486 return
8587}
8688
89+ // EXPERIMENTAL
8790// MakeRespMakeKnock makes the response for a /make_knock request, without verifying any signatures
8891// or dealing with HTTP responses itself.
8992func MakeRespMakeKnock (s * Server , room * ServerRoom , userID string ) (resp fclient.RespMakeKnock , err error ) {
@@ -115,6 +118,7 @@ func MakeRespMakeKnock(s *Server, room *ServerRoom, userID string) (resp fclient
115118 return
116119}
117120
121+ // EXPERIMENTAL
118122// SendJoinRequestsHandler is the http.Handler implementation for the send_join part of
119123// HandleMakeSendJoinRequests.
120124//
@@ -212,6 +216,7 @@ func SendJoinRequestsHandler(s *Server, w http.ResponseWriter, req *http.Request
212216 w .Write (b )
213217}
214218
219+ // EXPERIMENTAL
215220// HandleMakeSendJoinRequests is an option which will process make_join and send_join requests for rooms which are present
216221// in this server. To add a room to this server, see Server.MustMakeRoom. No checks are done to see whether join requests
217222// are allowed or not. If you wish to test that, write your own test.
@@ -240,6 +245,7 @@ func HandlePartialStateMakeSendJoinRequests() func(*Server) {
240245 }
241246}
242247
248+ // EXPERIMENTAL
243249// HandleInviteRequests is an option which makes the server process invite requests.
244250//
245251// inviteCallback is a callback function that if non-nil will be called and passed the incoming invite event
@@ -289,6 +295,7 @@ func HandleInviteRequests(inviteCallback func(gomatrixserverlib.PDU)) func(*Serv
289295 }
290296}
291297
298+ // EXPERIMENTAL
292299// HandleDirectoryLookups will automatically return room IDs for any aliases present on this server.
293300func HandleDirectoryLookups () func (* Server ) {
294301 return func (s * Server ) {
@@ -323,6 +330,7 @@ func HandleDirectoryLookups() func(*Server) {
323330 }
324331}
325332
333+ // EXPERIMENTAL
326334// HandleEventRequests is an option which will process GET /_matrix/federation/v1/event/{eventId} requests universally when requested.
327335func HandleEventRequests () func (* Server ) {
328336 return func (srv * Server ) {
@@ -366,6 +374,7 @@ func HandleEventRequests() func(*Server) {
366374 }
367375}
368376
377+ // EXPERIMENTAL
369378// HandleEventAuthRequests is an option which will process GET /_matrix/federation/v1/event_auth/{roomId}/{eventId}
370379// requests universally when requested.
371380func HandleEventAuthRequests () func (* Server ) {
@@ -415,6 +424,7 @@ func HandleEventAuthRequests() func(*Server) {
415424 }
416425}
417426
427+ // EXPERIMENTAL
418428// HandleKeyRequests is an option which will process GET /_matrix/key/v2/server requests universally when requested.
419429func HandleKeyRequests () func (* Server ) {
420430 return func (srv * Server ) {
@@ -455,6 +465,7 @@ func HandleKeyRequests() func(*Server) {
455465 }
456466}
457467
468+ // EXPERIMENTAL
458469// HandleMediaRequests is an option which will process /_matrix/media/v1/download/* using the provided map
459470// as a way to do so. The key of the map is the media ID to be handled.
460471func HandleMediaRequests (mediaIds map [string ]func (w http.ResponseWriter )) func (* Server ) {
@@ -489,6 +500,7 @@ func HandleMediaRequests(mediaIds map[string]func(w http.ResponseWriter)) func(*
489500 }
490501}
491502
503+ // EXPERIMENTAL
492504// HandleTransactionRequests is an option which will process GET /_matrix/federation/v1/send/{transactionID} requests universally when requested.
493505// pduCallback and eduCallback are functions that if non-nil will be called and passed each PDU or EDU event received in the transaction.
494506// Callbacks will be fired AFTER the event has been stored onto the respective ServerRoom.
0 commit comments