github.com/profzone/eden-framework@v1.0.10/pkg/courier/httpx/method.go (about)

     1  package httpx
     2  
     3  import (
     4  	"net/http"
     5  )
     6  
     7  type MethodGet struct {
     8  }
     9  
    10  func (MethodGet) Method() string {
    11  	return http.MethodGet
    12  }
    13  
    14  type MethodHead struct{}
    15  
    16  func (MethodHead) Method() string {
    17  	return http.MethodHead
    18  }
    19  
    20  type MethodPost struct{}
    21  
    22  func (MethodPost) Method() string {
    23  	return http.MethodPost
    24  }
    25  
    26  type MethodPut struct{}
    27  
    28  func (MethodPut) Method() string {
    29  	return http.MethodPut
    30  }
    31  
    32  type MethodPatch struct{}
    33  
    34  func (MethodPatch) Method() string {
    35  	return http.MethodPatch
    36  }
    37  
    38  type MethodDelete struct{}
    39  
    40  func (MethodDelete) Method() string {
    41  	return http.MethodDelete
    42  }