mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-02 04:12:26 -06:00
[feature] Add /api/v1/admin/debug/apurl endpoint (#2359)
This commit is contained in:
parent
74700cc803
commit
5eddef6c9b
7 changed files with 367 additions and 2 deletions
|
|
@ -210,3 +210,22 @@ type AdminInstanceRule struct {
|
|||
UpdatedAt string `json:"updated_at"` // when was item last updated
|
||||
Text string `json:"text"` // text content of the rule
|
||||
}
|
||||
|
||||
// DebugAPUrlResponse provides detailed debug
|
||||
// information for an AP URL dereference request.
|
||||
//
|
||||
// swagger:model debugAPUrlResponse
|
||||
type DebugAPUrlResponse struct {
|
||||
// Remote AP URL that was requested.
|
||||
RequestURL string `json:"request_url"`
|
||||
// HTTP headers used in the outgoing request.
|
||||
RequestHeaders map[string][]string `json:"request_headers"`
|
||||
// HTTP headers returned from the remote instance.
|
||||
ResponseHeaders map[string][]string `json:"response_headers"`
|
||||
// HTTP response code returned from the remote instance.
|
||||
ResponseCode int `json:"response_code"`
|
||||
// Body returned from the remote instance.
|
||||
// Will be stringified bytes; may be JSON,
|
||||
// may be an error, may be both!
|
||||
ResponseBody string `json:"response_body"`
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue