Add a requirement that a header file needs to be included for this to work
@param headerName the name of the header including .h
@param useQuotes true for quotes, false for triangle brackets.
@return this for chaining
438859
public FunctionCallBuilder requiresHeader(String headerName, boolean useQuotes) {
        headers.add(new HeaderDefinition(headerName, useQuotes, HeaderDefinition.PRIORITY_NORMAL));
        return this;
    }
528327
public void addHeader(String key, String value) {
    this.headers = addToMap(key, value, this.headers);
  }
381267
public void addIntHeader (@Nonnull @Nonempty final String sName, final int nValue)
  {
    _addHeader (sName, Integer.toString (nValue));
  }
331340
public HttpRequestBuilder addHeader(String name, String value) {
    reqHeaders.put(name, value);
    entry.withRequestHeader(name, value);
    return this;
  }
1347047
public void addHeader(String name, String value) {
        headerEntries.add(new HeaderEntry(name, value));
    }
551216
public MessageBuilder addAttachmentAsSpoiler(InputStream stream, String fileName) {
        delegate.addAttachment(stream, "SPOILER_" + fileName);
        return this;
    }
1319881
public static final String addQuotes(String szTableNames, char charStart, char charEnd)
    {
        String strFileName = szTableNames;
        if (charStart == -1)
            charStart = DBConstants.SQL_START_QUOTE;
        if (charEnd == -1)
            charEnd = DBConstants.SQL_END_QUOTE;

        for (int iIndex = 0; iIndex < strFileName.length(); iIndex++)
        {
            if ((strFileName.charAt(iIndex) == charStart)
                || (strFileName.charAt(iIndex) == charEnd))
            {   // If a quote is in this string, replace with a double-quote Fred's -> Fred''s
                strFileName = strFileName.substring(0, iIndex) + 
                    strFileName.substring(iIndex, iIndex + 1) + 
                    strFileName.substring(iIndex, iIndex + 1) + 
                    strFileName.substring(iIndex + 1, strFileName.length());
                iIndex++; // Skip the second quote
            }
        }
        if ((charStart != ' ') && (charEnd != ' '))
            strFileName = charStart + strFileName + charEnd;    // Spaces in name, quotes required
        return strFileName;
    }
1328846
private void addHeadersToContext(final HttpHeaders headers) {
        for (HttpHeader header : headers.all()) {
            final String rawKey = header.key();
            final String transformedKey = rawKey.replaceAll("-", "");
            context.put("requestHeader".concat(transformedKey), header.values()
                    .toString());
        }
    }
814296
public PactDslRequestWithPath headers(String firstHeaderName, String firstHeaderValue, String... headerNameValuePairs) {
        if (headerNameValuePairs.length % 2 != 0) {
            throw new IllegalArgumentException("Pair key value should be provided, but there is one key without value.");
        }
        requestHeaders.put(firstHeaderName, Collections.singletonList(firstHeaderValue));

        for (int i = 0; i < headerNameValuePairs.length; i+=2) {
          requestHeaders.put(headerNameValuePairs[i], Collections.singletonList(headerNameValuePairs[i+1]));
        }

        return this;
    }
54383
public HttpMessage header(final String headerName, final Object headerValue) {
        return (HttpMessage) super.setHeader(headerName, headerValue);
    }
380409
public Response filenameHeader(String filename) {
        if (filename != null && !filename.isEmpty()) {
            header(HttpConstants.Header.CONTENT_DISPOSITION, "attachment; filename=\"" + filename + "\"");
        } else {
            header(HttpConstants.Header.CONTENT_DISPOSITION, "attachment; filename=\"\"");
        }

        return this;
    }
675012
public ParallecHeader addPair(String key, String value) {
        this.headerMap.put(key, value);
        return this;
    }
586377
public Response andHeaders(Map<HttpString, String> headers) {
        Objects.requireNonNull(headers, Required.HEADERS.toString());
        this.headers.putAll(headers);

        return this;
    }
1167807
public HttpFileServiceBuilder addHeader(CharSequence name, Object value) {
        requireNonNull(name, "name");
        requireNonNull(value, "value");
        getOrCreateHeaders().addObject(HttpHeaderNames.of(name), value);
        return this;
    }
1162893
public RequestBuilder<T,ID> addHeader(String name,String value)
    {
        headers.add(name, value);
        return this;
    }
11087
public static void appendQuoted (@Nonnull final StringBuilder aTarget, @Nullable final String sSource)
  {
    if (sSource == null)
      aTarget.append ("null");
    else
      aTarget.append ('\'').append (sSource).append ('\'');
  }
402257
public void addExposedHeader(String header) {

		Constraint.ensureNotEmpty(header, String.format("Invalid header '%s'", header));
		exposedHeaders.add(header);
	}