Class PathParameter

java.lang.Object
enterprises.iwakura.kirara.core.PathParameter

public class PathParameter extends Object
Represents a path parameter in a request. This class is used to encapsulate a key-value pair that can be used in URL paths for constructing dynamic URLs in HTTP requests.
  • Constructor Details

    • PathParameter

      public PathParameter(String key, String value)
      Constructor to create a PathParameter instance.
      Parameters:
      key - The path parameter key.
      value - The path parameter value.
  • Method Details

    • of

      public static PathParameter of(@NonNull @NonNull String key, @NonNull @NonNull String value)
      Creates a new PathParameter instance.
      Parameters:
      key - The header key.
      value - The header value.
      Returns:
      Non-null PathParameter instance