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

com.github.kristofa.test.http.HttpRequest Maven / Gradle / Ivy

Go to download

Mock and Proxy HTTP Server for testing purposes. Forked from https://github.com/jharlap/mock-http-server

There is a newer version: 4.1
Show newest version
package com.github.kristofa.test.http;

import java.util.Set;

/**
 * Contains the HTTP request properties required to identify or compare a HTTP request.
 * 
 * @author kristof
 */
public interface HttpRequest {

    /**
     * Gets method for request.
     * 
     * @return Method for request.
     */
    Method getMethod();

    /**
     * Get content for request.
     * 
     * @return Content for request.
     */
    byte[] getContent();

    /**
     * Gets path for request without query parameters.
     * 
     * @return Path for request.
     */
    String getPath();

    /**
     * Gets query parameters for request.
     * 
     * @return Query parameters for request.
     */
    Set getQueryParameters();

    /**
     * Get http message headers.
     * 
     * @return Http message headers.
     */
    Set getHttpMessageHeaders();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy