Skip to content

Commit

Permalink
Remove customRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
joan38 committed Feb 3, 2025
1 parent 89f300b commit ec9a47d
Showing 1 changed file with 0 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,26 +66,6 @@ class KubernetesClient[F[_]: Async: Logger](
encoder: Encoder[CustomResource[A, B]],
decoder: Decoder[CustomResource[A, B]]
) = new CustomResourcesApi[F, A, B](httpClient, config, authorization, context)

def customRequest(
request: Request[F]
): F[Request[F]] =
Request[F](
method = request.method,
uri = config.server.resolve(request.uri),
httpVersion = request.httpVersion,
headers = request.headers,
body = request.body,
attributes = request.attributes
).withOptionalAuthorization(authorization)

def customRequest(request: WSRequest): F[WSRequest] =
WSRequest(
uri = config.server.resolve(request.uri),
headers = request.headers,
method = request.method
).withOptionalAuthorization(authorization)

}

object KubernetesClient {
Expand Down

0 comments on commit ec9a47d

Please sign in to comment.