Package org.gnome.soup
The following native libraries are required and will be loaded: libsoup-3.0.so
For namespace-global declarations, refer to the Soup class documentation.
This package is only available on linux.
Soup-method
soup-method.h contains a number of defines for standard HTTP and WebDAV headers. You do not need to use these defines; you can pass arbitrary strings to soup_message_new() if you prefer.
The thing that these defines <emphasis>are</emphasis> useful for is
performing quick comparisons against soup_message_get_method();
because SoupMessage always contains an interned string, and these
macros return interned strings, you can compare methods directly
against these macros rather than needing to use strcmp(). This is
most useful in SoupServer handlers. Eg:
<informalexample><programlisting> if (soup_message_get_method (msg) != SOUP_METHOD_GET && soup_message_get_method (msg) != SOUP_METHOD_HEAD) { soup_message_set_status (msg, SOUP_METHOD_NOT_IMPLEMENTED); return; } </programlisting></informalexample>
-
ClassDescriptionThe abstract base class for handling authentication.The Auth$Impl type represents a native instance of the abstract Auth class.Auth.Builder<B extends Auth.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.HTTP "Basic" authentication.AuthBasic.Builder<B extends AuthBasic.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.HTTP "Digest" authentication.AuthDigest.Builder<B extends AuthDigest.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.Server-side authentication.The AuthDomain$Impl type represents a native instance of the abstract AuthDomain class.AuthDomain.Builder<B extends AuthDomain.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.Server-side "Basic" authentication.AuthDomainBasic.Builder<B extends AuthDomainBasic.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.Functional interface declaration of the
AuthDomainBasicAuthCallbackcallback.Server-side "Digest" authentication.AuthDomainDigest.Builder<B extends AuthDomainDigest.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.Functional interface declaration of theAuthDomainDigestAuthCallbackcallback.Functional interface declaration of theAuthDomainFiltercallback.Functional interface declaration of theAuthDomainGenericAuthCallbackcallback.HTTP client-side authentication handler.AuthManager.Builder<B extends AuthManager.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.HTTP-based GSS-Negotiate authentication, as defined by RFC 4559.AuthNegotiate.Builder<B extends AuthNegotiate.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.HTTP-based NTLM authentication.AuthNTLM.Builder<B extends AuthNTLM.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.File-based cache for HTTP resources.Cache.Builder<B extends Cache.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.Indicates if a message should or shouldn't be cached.The type of cache; this affects what kinds of responses will be saved.Handles decoding of HTTP messages.ContentDecoder.Builder<B extends ContentDecoder.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.Sniffs the mime type of messages.ContentSniffer.Builder<B extends ContentSniffer.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.Implements HTTP cookies, as described by RFC 6265.Automatic cookie handling for SoupSession.CookieJar.Builder<B extends CookieJar.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.Functional interface declaration of theChangedCallbackcallback.The policy for accepting or rejecting cookies returned in responses.Database-based Cookie Jar.CookieJarDB.Builder<B extends CookieJarDB.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.Text-file-based ("cookies.txt") Cookie JarCookieJarText.Builder<B extends CookieJarText.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.Date formats thatSoup.dateTimeToString(org.gnome.glib.DateTime, org.gnome.soup.DateFormat)can use.How a message body is encoded for transportRepresents the parsed value of the "Expect" header.Automatic HTTP Strict Transport Security enforcing forSession.HSTSEnforcer.Builder<B extends HSTSEnforcer.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.Functional interface declaration of theChangedCallbackcallback.Class structure forSoupHSTSEnforcer.Persistent HTTP Strict Transport Security enforcer.HSTSEnforcerDB.Builder<B extends HSTSEnforcerDB.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.SoupHSTSPolicyimplements HTTP policies, as described by RFC 6797.Indicates the HTTP protocol version being used.Debug logging supportLogger.Builder<B extends Logger.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.Functional interface declaration of theLoggerFiltercallback.Describes the level of logging output to provide.Functional interface declaration of theLoggerPrintercallback.The lifetime of the memory being passed.Represents an HTTP message being sent or received.Functional interface declaration of theAcceptCertificateCallbackcallback.Functional interface declaration of theAuthenticateCallbackcallback.Message.Builder<B extends Message.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.Functional interface declaration of theContentSniffedCallbackcallback.Functional interface declaration of theFinishedCallbackcallback.Functional interface declaration of theGotBodyCallbackcallback.Functional interface declaration of theGotBodyDataCallbackcallback.Functional interface declaration of theGotHeadersCallbackcallback.Functional interface declaration of theGotInformationalCallbackcallback.Functional interface declaration of theHstsEnforcedCallbackcallback.Functional interface declaration of theNetworkEventCallbackcallback.Functional interface declaration of theRequestCertificateCallbackcallback.Functional interface declaration of theRequestCertificatePasswordCallbackcallback.Functional interface declaration of theRestartedCallbackcallback.Functional interface declaration of theStartingCallbackcallback.Functional interface declaration of theWroteBodyCallbackcallback.Functional interface declaration of theWroteBodyDataCallbackcallback.Functional interface declaration of theWroteHeadersCallbackcallback.SoupMessageBodyrepresents the request or response body of aMessage.Various flags that can be set on aSoupMessageto alter its behavior.The HTTP message headers associated with a request or response.Functional interface declaration of theMessageHeadersForeachFunccallback.An opaque type used to iterate over aSoupMessageHeadersstructure.Value passed toMessageHeaders(org.gnome.soup.MessageHeadersType)to set certain default behaviors.Contains metrics collected while loading aMessageeither from the network or the disk cache.Priorities that can be set on aMessageto instruct the message queue to process it before any other message with lower priority.Represents a multipart HTTP message body, parsed according to the syntax of RFC 2046.Handles streams of multipart messages.MultipartInputStream.Builder<B extends MultipartInputStream.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.Represents a byte range as used in the Range header.Represents the same-site policies of a cookie.SoupServerprovides a basic implementation of an HTTP server.Server.Builder<B extends Server.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.Functional interface declaration of theRequestAbortedCallbackcallback.Functional interface declaration of theRequestFinishedCallbackcallback.Functional interface declaration of theRequestReadCallbackcallback.Functional interface declaration of theRequestStartedCallbackcallback.Functional interface declaration of theServerCallbackcallback.Options to pass toServer.listen(org.gnome.gio.SocketAddress, java.util.Set<org.gnome.soup.ServerListenOptions>), etc.An HTTP server request and response pair.Functional interface declaration of theAcceptCertificateCallbackcallback.ServerMessage.Builder<B extends ServerMessage.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.Functional interface declaration of theConnectedCallbackcallback.Functional interface declaration of theDisconnectedCallbackcallback.Functional interface declaration of theFinishedCallbackcallback.Functional interface declaration of theGotBodyCallbackcallback.Functional interface declaration of theGotChunkCallbackcallback.Functional interface declaration of theGotHeadersCallbackcallback.Functional interface declaration of theWroteBodyCallbackcallback.Functional interface declaration of theWroteBodyDataCallbackcallback.Functional interface declaration of theWroteChunkCallbackcallback.Functional interface declaration of theWroteHeadersCallbackcallback.Functional interface declaration of theWroteInformationalCallbackcallback.Functional interface declaration of theServerWebsocketCallbackcallback.Soup session state object.Session.Builder<B extends Session.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.Functional interface declaration of theRequestQueuedCallbackcallback.Functional interface declaration of theRequestUnqueuedCallbackcallback.ASoupSessionerror.Interface for miscellaneousSessionfeatures.The SessionFeature$Impl type represents a native instance of the SessionFeature interface.The interface implemented bySessionFeatures.Constants and functions that are declared in the global Soup namespace.These represent the known HTTP status code values, plus various network and internal errors.Error codes forSOUP_TLD_ERROR.Enum values passed toSoup.uriCopy(org.gnome.glib.Uri, org.gnome.soup.URIComponent, java.lang.Object...)to indicate the components of the URI that should be updated with the given values.Pre-defined close codes that can be passed toWebsocketConnection.close(short, java.lang.String)or received fromWebsocketConnection.getCloseCode().The WebSocket ProtocolWebsocketConnection.Builder<B extends WebsocketConnection.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.Functional interface declaration of theClosedCallbackcallback.Functional interface declaration of theClosingCallbackcallback.Functional interface declaration of theErrorCallbackcallback.Functional interface declaration of theMessageCallbackcallback.Functional interface declaration of thePongCallbackcallback.The abstract base class forWebsocketConnection.The type of aWebsocketConnection.The type of data contained in aWebsocketConnection::messagesignal.WebSocket-related errors.A WebSocket extensionWebsocketExtension.Builder<B extends WebsocketExtension.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.The WebsocketExtension$Impl type represents a native instance of the abstract WebsocketExtension class.The class structure for theSoupWebsocketExtension.A SoupWebsocketExtensionDeflate is aWebsocketExtensionimplementing permessage-deflate (RFC 7692).Inner class implementing a builder pattern to construct a GObject with properties.SoupWebsocketExtensionManager is theSessionFeaturethat handles WebSockets extensions for aSession.Inner class implementing a builder pattern to construct a GObject with properties.The state of the WebSocket connection.