webkit-0.12.3: Binding to the Webkit library.

Portability | portable (depends on GHC)
Stability | provisional
Maintainer | gtk2hs-users@lists.sourceforge.net
Safe Haskell | None

Graphics.UI.Gtk.WebKit.NetworkRequest

Contents

- Description
- Types
- Constructors
- Methods

Description

The target of a navigation request

Synopsis

- data NetworkRequest
- class GObjectClass o => NetworkRequestClass o
- networkRequestNew :: String -> IO NetworkRequest
- networkRequestSetUri :: NetworkRequestClass self => self -> String -> IO ()
- networkRequestGetUri :: NetworkRequestClass self => self -> IO (Maybe String)

# Description

This class represents the network related aspects of a navigation request. It is used whenever WebKit wants to provide information about a request that will be sent, or has been sent. Inside it you can find the URI of the request, and, for valid URIs, a SoupMessage object, which provides access to further information such as headers.

# Types

data NetworkRequest Source

Instances

Eq NetworkRequest |
Ord NetworkRequest |
GObjectClass NetworkRequest |
NetworkRequestClass NetworkRequest |

class GObjectClass o => NetworkRequestClass o Source

Instances

NetworkRequestClass NetworkRequest |

# Constructors

networkRequestNew Source

Arguments

:: String | `uri` - the uri of the request
-> IO NetworkRequest |

Create a new NetworkRequest with the given `uri`.

It is used whenever WebKit wants to provide information about a request that will be sent, or has been sent.

# Methods

networkRequestSetUri Source

Arguments

:: NetworkRequestClass self |
=> self |
-> String | `uri` - the uri will be set to the request.
-> IO () |

Set the URI of `NetworkRequest`.

networkRequestGetUri Source

Arguments

:: NetworkRequestClass self |
=> self |
-> IO (Maybe String) | the URI or `Nothing` in case failed.

Return the uri of `NetworkRequest`.