Uses of Interface
kong.unirest.core.SseRequest
Packages that use SseRequest
-
Uses of SseRequest in kong.unirest.core
Classes in kong.unirest.core that implement SseRequestMethods in kong.unirest.core that return SseRequestModifier and TypeMethodDescriptionThe Accept header to send.Basic auth credentialsAdd a simple cookie headerSseRequest.cookie(Collection<Cookie> cookies) Add a collection of cookie headersAdd a simple cookie headerSseRequestImpl.cookie(Collection<Cookie> cookies) Add a http header, HTTP supports multiple of the same header.SseRequest.headerReplace(String name, String value) Replace a header value or add it if it doesn't existSseRequestImpl.headerReplace(String name, String value) Add headers as a mapSseRequest.lastEventId(String id) Sets the Last-Event-ID HTTP request header reports an EventSource object's last event ID string to the server when the user agent is to reestablish the connection.SseRequestImpl.lastEventId(String id) SseRequest.queryString(String name, Object value) add a query param to the url.SseRequest.queryString(String name, Collection<?> value) Add multiple param with the same param name. queryString("name", Arrays.asList("bob", "linda")) will result in ?SseRequest.queryString(Map<String, Object> parameters) Add query params as a map of name value pairsSseRequestImpl.queryString(String name, Object value) SseRequestImpl.queryString(String name, Collection<?> value) SseRequestImpl.queryString(Map<String, Object> parameters) SseRequest.routeParam(String name, String value) add a route param that replaces the matching {name} For example routeParam("name", "fred") will replace {name} in https://localhost/users/{user} to https://localhost/users/fredSseRequest.routeParam(Map<String, Object> params) add a route param map that replaces the matching {name} For example routeParam(Map.of("name", "fred")) will replace {name} in https://localhost/users/{user} to https://localhost/users/fredSseRequestImpl.routeParam(String name, String value) SseRequestImpl.routeParam(Map<String, Object> params) static SseRequestMethods in kong.unirest.core with parameters of type SseRequestModifier and TypeMethodDescriptionClient.sse(SseRequest request) Client.sse(SseRequest request, SseHandler handler) execute a SSE Event connection. -
Uses of SseRequest in kong.unirest.core.java
Methods in kong.unirest.core.java with parameters of type SseRequestModifier and TypeMethodDescriptionJavaClient.sse(SseRequest request) JavaClient.sse(SseRequest request, SseHandler handler)