Package jetbrains.buildServer.http
Interface HttpApi
-
- All Known Implementing Classes:
ControllerBasedHttpApi,FakeHttpApi,HttpClientBasedHttpApi
public interface HttpApiSimple abstraction for the communication via HTTP.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classHttpApi.HeaderPairstatic interfaceHttpApi.Response
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddCookie(String cookieName, String cookieValue, String domain, int maxAgeSeconds)HttpApi.Responseget(String uri, HttpApi.HeaderPair... headers)HttpApi.Responsepost(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
-
-