All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.anthavio.httl.api.HttlHeaders Maven / Gradle / Ivy

The newest version!
package net.anthavio.httl.api;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Values can be {placeholders} for values supplied by method parameters
 * 
 * Examples:
 * 
 * @HttlHeaders("User-Agent: Hatatitla")
 * 
 * @HttlHeaders({"User-Agent: {user_agent}", "Accept: application/json"})
 * 
 * @author martin.vanek
 *
 */
@Target({ ElementType.METHOD, ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME)
public @interface HttlHeaders {

	/**
	 * @return array of http request headers (possibly with placehoders)
	 */
	String[] value();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy