Package jetbrains.buildServer.http
Interface HttpApi
-
- All Known Implementing Classes:
ControllerBasedHttpApi
,FakeHttpApi
,HttpClientBasedHttpApi
public interface HttpApi
Simple abstraction for the communication via HTTP.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
HttpApi.HeaderPair
static interface
HttpApi.Response
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addCookie(String cookieName, String cookieValue, String domain, int maxAgeSeconds)
HttpApi.Response
get(String uri, HttpApi.HeaderPair... headers)
HttpApi.Response
post(String uri, String body, String contentType, String charset, HttpApi.HeaderPair... headers)
-
-
-
Method Detail
-
get
@NotNull HttpApi.Response get(@NotNull String uri, @NotNull HttpApi.HeaderPair... headers) throws IOException
- Throws:
IOException
-
post
@NotNull HttpApi.Response post(@NotNull String uri, @NotNull String body, @NotNull String contentType, @NotNull String charset, @NotNull HttpApi.HeaderPair... headers) throws IOException
- Throws:
IOException
-
-