Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PodManagerHttpHandler

An HTTP handler that listens to requests to a specific path for pod related requests. Handles everything related to pod management from input request to output response.

Hierarchy

Index

Constructors

constructor

Properties

Private Readonly agentParser

agentParser: AgentParser

Private Readonly manager

manager: PodManager

Private Readonly requestParser

requestParser: RequestParser

Private Readonly requestPath

requestPath: string

Private Readonly responseWriter

responseWriter: ResponseWriter

Methods

canHandle

  • canHandle(__namedParameters: { request: HttpRequest }): Promise<void>

handle

handleSafe

  • Helper function that first runs the canHandle function followed by the handle function. Throws the error of the canHandle function if the data can't be handled, or returns the result of the handle function otherwise.

    Parameters

    Returns Promise<void>

    The result of the handle function of the handler.