Interface HeaderInjector


public interface HeaderInjector
Used to inject a header into a networking library's underlying outgoing request object.

Can be implemented as a lambda in Java 8 and as an anonymous inner class in Java 7.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addHeader(String headerName, String headerValue)
    Injects a header key and value into the underlying request object of an networking library
  • Method Details

    • addHeader

      void addHeader(String headerName, String headerValue)
      Injects a header key and value into the underlying request object of an networking library
      Parameters:
      headerName - the name of the header
      headerValue - the value of the header