/** * Start a 'POST' request to the given URL along with the query params * * @param baseUrl * @param params the query parameters to include as part of the baseUrl * @param encode true to encode the full URL * @return request * @see #append(CharSequence, Map) * @see #encode(CharSequence) */ public static HttpRequest post(final CharSequence baseUrl, final Map<?, ?> params, final boolean encode) { String url = append(baseUrl, params); return post(encode ? encode(url) : url); }
/** * Start a 'DELETE' request to the given URL along with the query params * * @param baseUrl * @param params The query parameters to include as part of the baseUrl * @param encode true to encode the full URL * @return request * @see #append(CharSequence, Map) * @see #encode(CharSequence) */ public static HttpRequest delete(final CharSequence baseUrl, final Map<?, ?> params, final boolean encode) { String url = append(baseUrl, params); return delete(encode ? encode(url) : url); }
/** * Start a 'PUT' request to the given URL along with the query params * * @param baseUrl * @param params the query parameters to include as part of the baseUrl * @param encode true to encode the full URL * @return request * @see #append(CharSequence, Map) * @see #encode(CharSequence) */ public static HttpRequest put(final CharSequence baseUrl, final Map<?, ?> params, final boolean encode) { String url = append(baseUrl, params); return put(encode ? encode(url) : url); }
/** * Start a 'HEAD' request to the given URL along with the query params * * @param baseUrl * @param params The query parameters to include as part of the baseUrl * @param encode true to encode the full URL * @return request * @see #append(CharSequence, Map) * @see #encode(CharSequence) */ public static HttpRequest head(final CharSequence baseUrl, final Map<?, ?> params, final boolean encode) { String url = append(baseUrl, params); return head(encode ? encode(url) : url); }
/** * Start a 'GET' request to the given URL along with the query params * * @param baseUrl * @param params The query parameters to include as part of the baseUrl * @param encode true to encode the full URL * @return request * @see #append(CharSequence, Map) * @see #encode(CharSequence) */ public static HttpRequest get(final CharSequence baseUrl, final Map<?, ?> params, final boolean encode) { String url = append(baseUrl, params); return get(encode ? encode(url) : url); }
/** * Start a 'POST' request to the given URL along with the query params * * @param baseUrl * @param encode true to encode the full URL * @param params the name/value query parameter pairs to include as part of the * baseUrl * @return request * @see #append(CharSequence, String...) * @see #encode(CharSequence) */ public static HttpRequest post(final CharSequence baseUrl, final boolean encode, final Object... params) { String url = append(baseUrl, params); return post(encode ? encode(url) : url); }
/** * Start a 'GET' request to the given URL along with the query params * * @param baseUrl * @param encode true to encode the full URL * @param params the name/value query parameter pairs to include as part of the * baseUrl * @return request * @see #append(CharSequence, String...) * @see #encode(CharSequence) */ public static HttpRequest head(final CharSequence baseUrl, final boolean encode, final Object... params) { String url = append(baseUrl, params); return head(encode ? encode(url) : url); }
/** * Start a 'PUT' request to the given URL along with the query params * * @param baseUrl * @param encode true to encode the full URL * @param params the name/value query parameter pairs to include as part of the * baseUrl * @return request * @see #append(CharSequence, String...) * @see #encode(CharSequence) */ public static HttpRequest put(final CharSequence baseUrl, final boolean encode, final Object... params) { String url = append(baseUrl, params); return put(encode ? encode(url) : url); }
/** * Start a 'DELETE' request to the given URL along with the query params * * @param baseUrl * @param encode true to encode the full URL * @param params the name/value query parameter pairs to include as part of the * baseUrl * @return request * @see #append(CharSequence, String...) * @see #encode(CharSequence) */ public static HttpRequest delete(final CharSequence baseUrl, final boolean encode, final Object... params) { String url = append(baseUrl, params); return delete(encode ? encode(url) : url); }
/** * Start a 'GET' request to the given URL along with the query params * * @param baseUrl * @param encode true to encode the full URL * @param params the name/value query parameter pairs to include as part of the * baseUrl * @return request * @see #append(CharSequence, String...) * @see #encode(CharSequence) */ public static HttpRequest get(final CharSequence baseUrl, final boolean encode, final Object... params) { String url = append(baseUrl, params); return get(encode ? encode(url) : url); }
/** * Start a 'POST' request to the given URL along with the query params * * @param baseUrl * @param params * the query parameters to include as part of the baseUrl * @param encode * true to encode the full URL * * @see #append(CharSequence, Map) * @see #encode(CharSequence) * * @return request */ public static HttpRequest post(final CharSequence baseUrl, final Map<?, ?> params, final boolean encode) { String url = append(baseUrl, params); return post(encode ? encode(url) : url); }
/** * Start a 'POST' request to the given URL along with the query params * * @param baseUrl * @param params * the query parameters to include as part of the baseUrl * @param encode * true to encode the full URL * * @see #append(CharSequence, Map) * @see #encode(CharSequence) * * @return request */ public static HttpRequest post(final CharSequence baseUrl, final Map<?, ?> params, final boolean encode) { String url = append(baseUrl, params); return post(encode ? encode(url) : url); }
/** * Start a 'PUT' request to the given URL along with the query params * * @param baseUrl * @param params * the query parameters to include as part of the baseUrl * @param encode * true to encode the full URL * * @see #append(CharSequence, Map) * @see #encode(CharSequence) * * @return request */ public static HttpRequest put(final CharSequence baseUrl, final Map<?, ?> params, final boolean encode) { String url = append(baseUrl, params); return put(encode ? encode(url) : url); }
/** * Start a 'GET' request to the given URL along with the query params * * @param baseUrl * @param params * The query parameters to include as part of the baseUrl * @param encode * true to encode the full URL * * @see #append(CharSequence, Map) * @see #encode(CharSequence) * * @return request */ public static HttpRequest get(final CharSequence baseUrl, final Map<?, ?> params, final boolean encode) { String url = append(baseUrl, params); return get(encode ? encode(url) : url); }
/** * Start a 'DELETE' request to the given URL along with the query params * * @param baseUrl * @param params * The query parameters to include as part of the baseUrl * @param encode * true to encode the full URL * * @see #append(CharSequence, Map) * @see #encode(CharSequence) * * @return request */ public static HttpRequest delete(final CharSequence baseUrl, final Map<?, ?> params, final boolean encode) { String url = append(baseUrl, params); return delete(encode ? encode(url) : url); }
/** * Start a 'POST' request to the given URL along with the query params * * @param baseUrl * @param params * the query parameters to include as part of the baseUrl * @param encode * true to encode the full URL * * @see #append(CharSequence, Map) * @see #encode(CharSequence) * * @return request */ public static HttpRequest post(final CharSequence baseUrl, final Map<?, ?> params, final boolean encode) { String url = append(baseUrl, params); return post(encode ? encode(url) : url); }
/** * Start a 'PUT' request to the given URL along with the query params * * @param baseUrl * @param params * the query parameters to include as part of the baseUrl * @param encode * true to encode the full URL * * @see #append(CharSequence, Map) * @see #encode(CharSequence) * * @return request */ public static HttpRequest put(final CharSequence baseUrl, final Map<?, ?> params, final boolean encode) { String url = append(baseUrl, params); return put(encode ? encode(url) : url); }
/** * Start a 'DELETE' request to the given URL along with the query params * * @param baseUrl * @param params * The query parameters to include as part of the baseUrl * @param encode * true to encode the full URL * * @see #append(CharSequence, Map) * @see #encode(CharSequence) * * @return request */ public static HttpRequest delete(final CharSequence baseUrl, final Map<?, ?> params, final boolean encode) { String url = append(baseUrl, params); return delete(encode ? encode(url) : url); }
/** * Start a 'GET' request to the given URL along with the query params * * @param baseUrl * @param params * The query parameters to include as part of the baseUrl * @param encode * true to encode the full URL * * @see #append(CharSequence, Map) * @see #encode(CharSequence) * * @return request */ public static HttpRequest get(final CharSequence baseUrl, final Map<?, ?> params, final boolean encode) { String url = append(baseUrl, params); return get(encode ? encode(url) : url); }
/** * Start a 'GET' request to the given URL along with the query params * * @param baseUrl * @param params * The query parameters to include as part of the baseUrl * @param encode * true to encode the full URL * * @see #append(CharSequence, Map) * @see #encode(CharSequence) * * @return request */ public static HttpRequest get(final CharSequence baseUrl, final Map<?, ?> params, final boolean encode) { String url = append(baseUrl, params); return get(encode ? encode(url) : url); }