Interface Http.HeaderFunction

Enclosing class:
Http

@Contract public static interface Http.HeaderFunction
Header producer, to use with rest client and rest server annotations.
  • Method Summary

    Modifier and Type
    Method
    Description
    Produce an instance of a named header.
  • Method Details

    • apply

      Optional<Header> apply(HeaderName name)
      Produce an instance of a named header.
      Parameters:
      name - name to create
      Returns:
      value for the header