code.gitea.io/gitea@v1.22.3/modules/web/types/response.go (about)

     1  // Copyright 2023 The Gitea Authors. All rights reserved.
     2  // SPDX-License-Identifier: MIT
     3  
     4  package types
     5  
     6  // ResponseStatusProvider is an interface to get the written status in the response
     7  // Many packages need this interface, so put it in the separate package to avoid import cycle
     8  type ResponseStatusProvider interface {
     9  	WrittenStatus() int
    10  }