Sets a single header for the {@link HubConnection} to send.

@param name The name of the header to set.
@param value The value of the header to be set.
@return This instance of the HttpHubConnectionBuilder.
972103
public HttpHubConnectionBuilder withHeader(String name, String value) {
        if (headers == null) {
            this.headers = new HashMap<>();
        }
        this.headers.put(name, value);
        return this;
    }
529534
public DatabaseConnectionRequest<T, U> addHeader(String name, String value) {
        request.addHeader(name, value);
        return this;
    }
589528
public IpcLogEntry addRequestHeader(String name, String value) {
    if (clientAsg == null && name.equalsIgnoreCase(NetflixHeader.ASG.headerName())) {
        withClientAsg(value);
    } else if (clientZone == null && name.equalsIgnoreCase(NetflixHeader.Zone.headerName())) {
      withClientZone(value);
    } else if (clientNode == null && name.equalsIgnoreCase(NetflixHeader.Node.headerName())) {
      withClientNode(value);
    } else if (vip == null && name.equalsIgnoreCase(NetflixHeader.Vip.headerName())) {
      withVip(value);
    } else {
      this.requestHeaders.add(new Header(name, value));
    }
    return this;
  }
94692
public CustomHeadersInterceptor addHeader(String name, String value) {
        if (!this.headers.containsKey(name)) {
            this.headers.put(name, new ArrayList<String>());
        }
        this.headers.get(name).add(value);
        return this;
    }
511624
public B addHttpHeader(CharSequence name, Object value) {
        requireNonNull(name, "name");
        requireNonNull(value, "value");
        httpHeaders.addObject(HttpHeaderNames.of(name), value);
        return self();
    }
556564
public void setHeader(String name, String value) {
		if (headers == null) {
			headers = new HashMap<String, String>();
		}
		if (value != null) {
			headers.put(name, value);
		} else {
			headers.remove(name);
		}
	}
692581
public HeaderParams put(String name, String value) {
        values.put(cleanAndValidate(name), cleanAndValidate(value));
        return this;
    }
614733
public HttpFileServiceBuilder setHeader(CharSequence name, Object value) {
        requireNonNull(name, "name");
        requireNonNull(value, "value");
        getOrCreateHeaders().setObject(HttpHeaderNames.of(name), value);
        return this;
    }
1273283
@NotNull
	public HttpResponse withHeader(@NotNull HttpHeader header, @NotNull String value) {
		addHeader(header, value);
		return this;
	}
879575
public ProxySettings addHeader(String name, String value)
    {
        if (name == null || name.length() == 0)
        {
            return this;
        }

        List<String> list = mHeaders.get(name);

        if (list == null)
        {
            list = new ArrayList<String>();
            mHeaders.put(name, list);
        }

        list.add(value);

        return this;
    }
774397
public HttpConnection header(Header header, String value, boolean isOverride) {
		return header(header.toString(), value, isOverride);
	}
1336000
public Response header(String name, String value) {
        checkCommitted();

        getHeaderMap().put(name, value);

        return this;
    }
959093
public CustomHeadersInterceptor replaceHeader(String name, String value) {
        this.headers.put(name, new ArrayList<String>());
        this.headers.get(name).add(value);
        return this;
    }
865862
public WellRestedRequestBuilder addGlobalHeader(String name, String value) {
        if (this.globalHeaders == null) {
            this.globalHeaders = new ArrayList<>();
        }
        this.globalHeaders.add(new BasicHeader(name, value));
        return this;
    }
1214123
public HttpClient addHeader(String name, Object value) {
        if (mHeaders == null) {
            mHeaders = new HttpHeaderMap();
        }
        mHeaders.add(name, value);
        return this;
    }
555519
public void setHeader(String name, String value) {
        httpRequest.headers().set(name, value);
    }
567910
public T header(String name, String value) {
		return header(name, value, true);
	}