github.com/jamescostian/go-swagger@v0.30.4-0.20221130163922-68364d6b567b/examples/file-server/restapi/operations/uploads/upload_file_responses.go (about)

     1  // Code generated by go-swagger; DO NOT EDIT.
     2  
     3  package uploads
     4  
     5  // This file was generated by the swagger tool.
     6  // Editing this file might prove futile when you re-run the swagger generate command
     7  
     8  import (
     9  	"net/http"
    10  
    11  	"github.com/go-openapi/runtime"
    12  )
    13  
    14  // UploadFileOKCode is the HTTP code returned for type UploadFileOK
    15  const UploadFileOKCode int = 200
    16  
    17  /*
    18  UploadFileOK OK
    19  
    20  swagger:response uploadFileOK
    21  */
    22  type UploadFileOK struct {
    23  }
    24  
    25  // NewUploadFileOK creates UploadFileOK with default headers values
    26  func NewUploadFileOK() *UploadFileOK {
    27  
    28  	return &UploadFileOK{}
    29  }
    30  
    31  // WriteResponse to the client
    32  func (o *UploadFileOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
    33  
    34  	rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses
    35  
    36  	rw.WriteHeader(200)
    37  }