com.github.kevinsawicki.http.HttpRequest.form()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(8.4k)|赞(0)|评价(0)|浏览(198)

本文整理了Java中com.github.kevinsawicki.http.HttpRequest.form()方法的一些代码示例,展示了HttpRequest.form()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。HttpRequest.form()方法的具体详情如下:
包路径:com.github.kevinsawicki.http.HttpRequest
类名称:HttpRequest
方法名:form

HttpRequest.form介绍

[英]Write the name/value pair as form data to the request body

The pair specified will be URL-encoded in UTF-8 and sent with the 'application/x-www-form-urlencoded' content-type
[中]将名称/值对作为表单数据写入请求主体
指定的对将使用UTF-8进行URL编码,并使用“application/x-www-form-urlencoded”内容类型发送

代码示例

代码示例来源:origin: com.github.kevinsawicki/http-request

/**
 * Write the key and value in the entry as form data to the request body
 * <p>
 * The pair specified will be URL-encoded in UTF-8 and sent with the
 * 'application/x-www-form-urlencoded' content-type
 *
 * @param entry
 * @return this request
 * @throws HttpRequestException
 */
public HttpRequest form(final Entry<?, ?> entry) throws HttpRequestException {
 return form(entry, CHARSET_UTF8);
}

代码示例来源:origin: tcking/GiraffePlayer2

/**
 * Write the values in the map as form data to the request body
 * <p>
 * The pairs specified will be URL-encoded in UTF-8 and sent with the
 * 'application/x-www-form-urlencoded' content-type
 *
 * @param values
 * @return this request
 * @throws HttpRequestException
 */
public HttpRequest form(final Map<?, ?> values) throws HttpRequestException {
  return form(values, CHARSET_UTF8);
}

代码示例来源:origin: tcking/GiraffePlayer2

/**
 * Write the key and value in the entry as form data to the request body
 * <p>
 * The pair specified will be URL-encoded in UTF-8 and sent with the
 * 'application/x-www-form-urlencoded' content-type
 *
 * @param entry
 * @return this request
 * @throws HttpRequestException
 */
public HttpRequest form(final Entry<?, ?> entry) throws HttpRequestException {
  return form(entry, CHARSET_UTF8);
}

代码示例来源:origin: lkorth/httpebble-android

/**
 * Write the key and value in the entry as form data to the request body
 * <p/>
 * The pair specified will be URL-encoded in UTF-8 and sent with the
 * 'application/x-www-form-urlencoded' content-type
 *
 * @param entry
 * @return this request
 * @throws HttpRequestException
 */
public HttpRequest form(final Entry<?, ?> entry) throws HttpRequestException {
  return form(entry, CHARSET_UTF8);
}

代码示例来源:origin: lkorth/httpebble-android

/**
 * Write the values in the map as form data to the request body
 * <p/>
 * The pairs specified will be URL-encoded in UTF-8 and sent with the
 * 'application/x-www-form-urlencoded' content-type
 *
 * @param values
 * @return this request
 * @throws HttpRequestException
 */
public HttpRequest form(final Map<?, ?> values) throws HttpRequestException {
  return form(values, CHARSET_UTF8);
}

代码示例来源:origin: com.github.kevinsawicki/http-request

/**
 * Write the values in the map as form data to the request body
 * <p>
 * The pairs specified will be URL-encoded in UTF-8 and sent with the
 * 'application/x-www-form-urlencoded' content-type
 *
 * @param values
 * @return this request
 * @throws HttpRequestException
 */
public HttpRequest form(final Map<?, ?> values) throws HttpRequestException {
 return form(values, CHARSET_UTF8);
}

代码示例来源:origin: com.restfuse/com.eclipsesource.restfuse

/**
 * Write the values in the map as form data to the request body
 * <p>
 * The pairs specified will be URL-encoded in UTF-8 and sent with the
 * 'application/x-www-form-urlencoded' content-type
 *
 * @param values
 * @return this request
 * @throws HttpRequestException
 */
public HttpRequest form(final Map<?, ?> values) throws HttpRequestException {
 return form(values, CHARSET_UTF8);
}

代码示例来源:origin: com.restfuse/com.eclipsesource.restfuse

/**
 * Write the key and value in the entry as form data to the request body
 * <p>
 * The pair specified will be URL-encoded in UTF-8 and sent with the
 * 'application/x-www-form-urlencoded' content-type
 *
 * @param entry
 * @return this request
 * @throws HttpRequestException
 */
public HttpRequest form(final Entry<?, ?> entry) throws HttpRequestException {
 return form(entry, CHARSET_UTF8);
}

代码示例来源:origin: lkorth/httpebble-android

/**
 * Write the name/value pair as form data to the request body
 * <p/>
 * The pair specified will be URL-encoded in UTF-8 and sent with the
 * 'application/x-www-form-urlencoded' content-type
 *
 * @param name
 * @param value
 * @return this request
 * @throws HttpRequestException
 */
public HttpRequest form(final Object name, final Object value)
    throws HttpRequestException {
  return form(name, value, CHARSET_UTF8);
}

代码示例来源:origin: com.github.kevinsawicki/http-request

/**
 * Write the name/value pair as form data to the request body
 * <p>
 * The pair specified will be URL-encoded in UTF-8 and sent with the
 * 'application/x-www-form-urlencoded' content-type
 *
 * @param name
 * @param value
 * @return this request
 * @throws HttpRequestException
 */
public HttpRequest form(final Object name, final Object value)
  throws HttpRequestException {
 return form(name, value, CHARSET_UTF8);
}

代码示例来源:origin: com.restfuse/com.eclipsesource.restfuse

/**
 * Write the name/value pair as form data to the request body
 * <p>
 * The pair specified will be URL-encoded in UTF-8 and sent with the
 * 'application/x-www-form-urlencoded' content-type
 *
 * @param name
 * @param value
 * @return this request
 * @throws HttpRequestException
 */
public HttpRequest form(final Object name, final Object value)
  throws HttpRequestException {
 return form(name, value, CHARSET_UTF8);
}

代码示例来源:origin: tcking/GiraffePlayer2

/**
 * Write the name/value pair as form data to the request body
 * <p>
 * The pair specified will be URL-encoded in UTF-8 and sent with the
 * 'application/x-www-form-urlencoded' content-type
 *
 * @param name
 * @param value
 * @return this request
 * @throws HttpRequestException
 */
public HttpRequest form(final Object name, final Object value)
    throws HttpRequestException {
  return form(name, value, CHARSET_UTF8);
}

代码示例来源:origin: com.restfuse/com.eclipsesource.restfuse

/**
 * Write the key and value in the entry as form data to the request body
 * <p>
 * The pair specified will be URL-encoded and sent with the
 * 'application/x-www-form-urlencoded' content-type
 *
 * @param entry
 * @param charset
 * @return this request
 * @throws HttpRequestException
 */
public HttpRequest form(final Entry<?, ?> entry, final String charset)
  throws HttpRequestException {
 return form(entry.getKey(), entry.getValue(), charset);
}

代码示例来源:origin: lkorth/httpebble-android

/**
 * Write the values in the map as encoded form data to the request body
 *
 * @param values
 * @param charset
 * @return this request
 * @throws HttpRequestException
 */
public HttpRequest form(final Map<?, ?> values, final String charset)
    throws HttpRequestException {
  if (!values.isEmpty())
    for (Entry<?, ?> entry : values.entrySet())
      form(entry, charset);
  return this;
}

代码示例来源:origin: com.github.kevinsawicki/http-request

/**
 * Write the values in the map as encoded form data to the request body
 *
 * @param values
 * @param charset
 * @return this request
 * @throws HttpRequestException
 */
public HttpRequest form(final Map<?, ?> values, final String charset)
  throws HttpRequestException {
 if (!values.isEmpty())
  for (Entry<?, ?> entry : values.entrySet())
   form(entry, charset);
 return this;
}

代码示例来源:origin: com.restfuse/com.eclipsesource.restfuse

/**
 * Write the values in the map as encoded form data to the request body
 *
 * @param values
 * @param charset
 * @return this request
 * @throws HttpRequestException
 */
public HttpRequest form(final Map<?, ?> values, final String charset)
  throws HttpRequestException {
 if (!values.isEmpty())
  for (Entry<?, ?> entry : values.entrySet())
   form(entry, charset);
 return this;
}

代码示例来源:origin: com.github.kevinsawicki/http-request

/**
 * Write the key and value in the entry as form data to the request body
 * <p>
 * The pair specified will be URL-encoded and sent with the
 * 'application/x-www-form-urlencoded' content-type
 *
 * @param entry
 * @param charset
 * @return this request
 * @throws HttpRequestException
 */
public HttpRequest form(final Entry<?, ?> entry, final String charset)
  throws HttpRequestException {
 return form(entry.getKey(), entry.getValue(), charset);
}

代码示例来源:origin: tcking/GiraffePlayer2

/**
 * Write the key and value in the entry as form data to the request body
 * <p>
 * The pair specified will be URL-encoded and sent with the
 * 'application/x-www-form-urlencoded' content-type
 *
 * @param entry
 * @param charset
 * @return this request
 * @throws HttpRequestException
 */
public HttpRequest form(final Entry<?, ?> entry, final String charset)
    throws HttpRequestException {
  return form(entry.getKey(), entry.getValue(), charset);
}

代码示例来源:origin: tcking/GiraffePlayer2

/**
 * Write the values in the map as encoded form data to the request body
 *
 * @param values
 * @param charset
 * @return this request
 * @throws HttpRequestException
 */
public HttpRequest form(final Map<?, ?> values, final String charset)
    throws HttpRequestException {
  if (!values.isEmpty())
    for (Entry<?, ?> entry : values.entrySet())
      form(entry, charset);
  return this;
}

代码示例来源:origin: lkorth/httpebble-android

/**
 * Write the key and value in the entry as form data to the request body
 * <p/>
 * The pair specified will be URL-encoded and sent with the
 * 'application/x-www-form-urlencoded' content-type
 *
 * @param entry
 * @param charset
 * @return this request
 * @throws HttpRequestException
 */
public HttpRequest form(final Entry<?, ?> entry, final String charset)
    throws HttpRequestException {
  return form(entry.getKey(), entry.getValue(), charset);
}

相关文章

微信公众号

最新文章

更多

HttpRequest类方法