github.com/blend/go-sdk@v1.20220411.3/reverseproxy/transform_request.go (about)

     1  /*
     2  
     3  Copyright (c) 2022 - Present. Blend Labs, Inc. All rights reserved
     4  Use of this source code is governed by a MIT license that can be found in the LICENSE file.
     5  
     6  */
     7  
     8  package reverseproxy
     9  
    10  import (
    11  	"net/http"
    12  )
    13  
    14  // TransformRequest modifies an HTTP request. This is intended to be used
    15  // during `Proxy.ServeHTTP()` for custom business logic, e.g. checking if a
    16  // client was included and verified in the request.
    17  type TransformRequest = func(*http.Request)