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

com.teststeps.thekla4j.http.spp.activities.Post Maven / Gradle / Ivy

package com.teststeps.thekla4j.http.spp.activities;

import com.teststeps.thekla4j.activityLog.annotations.Action;
import com.teststeps.thekla4j.http.core.HttpClient;
import com.teststeps.thekla4j.http.core.HttpRequest;
import com.teststeps.thekla4j.http.spp.Request;

import java.io.File;

@Action("post to resource: '@{resource}' with options: @{options}")
public class Post extends RequestInteraction {

    public static Post to(Request request) {
        return new Post(request);
    }

    public static PostFile.PostFileHelper file(File file, String fieldName) {
        return PostFile.file(file, fieldName);
    }

    private Post(Request request) {
        super(request, HttpRequest::post);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy