Class HttpRequestStepBuilder.HeadersBuilder

  • All Implemented Interfaces:
    io.hyperfoil.api.config.PairBuilder<java.lang.String>, io.hyperfoil.api.config.PartialBuilder, java.util.function.BiConsumer<java.lang.String,​java.lang.String>
    Enclosing class:
    HttpRequestStepBuilder

    public static class HttpRequestStepBuilder.HeadersBuilder
    extends io.hyperfoil.api.config.PairBuilder.OfString
    implements io.hyperfoil.api.config.PartialBuilder
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface io.hyperfoil.api.config.PairBuilder

        io.hyperfoil.api.config.PairBuilder.OfDouble, io.hyperfoil.api.config.PairBuilder.OfString
    • Method Detail

      • accept

        public void accept​(java.lang.String header,
                           java.lang.String value)
        Use header name (e.g. Content-Type) as key and value (possibly a pattern).
        Specified by:
        accept in interface java.util.function.BiConsumer<java.lang.String,​java.lang.String>
      • withKey

        public HttpRequestStepBuilder.PartialHeadersBuilder withKey​(java.lang.String key)
        Use header name (e.g. Content-Type) as key and specify value in the mapping.
        Specified by:
        withKey in interface io.hyperfoil.api.config.PartialBuilder