eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'HTTPProxyQuery':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: HTTPProxyQuery


Inheritance:

   Object
   |
   +--GenericException
      |
      +--Notification
         |
         +--Query
            |
            +--HTTPProxyQuery

Package:
stx:goodies/communication
Category:
Net-Communication-HTTP-Client
Version:
rev: 1.3 date: 2021/01/20 16:03:28
user: cg
file: HTTPProxyQuery.st directory: goodies/communication
module: stx stc-classLibrary: communication

Description:


query for a proxy (raised by HTTPInterface to ask any caller for a proxySettings info)


[instance variables:]

[class variables:]

[example:]
    |p|

    p := HTTPProxySettings new.
    p proxyHost:'foo'.
    p proxyPort:1234.
    p useProxy:true.
    HTTPProxyQuery 
        answer:p
        do:[
            HTTPInterface get:'www.exept.de'
        ].

copyright

COPYRIGHT (c) 2018 by eXept Software AG All Rights Reserved This software is furnished under a license and may be used only in accordance with the terms of that license and with the inclusion of the above copyright notice. This software may not be provided or otherwise made available to, or used by, any other person. No title to or ownership of the software is hereby transferred.

Examples:


    |reply p|

    p := HTTPProxySettings useHost:'sixtyfour' port:3128.

    HTTPProxyQuery 
        answer:p
        do:[
            reply := HTTPInterface get:'www.exept.de'
        ].
    |reply|

    HTTPInterface
        withProxy:(HTTPProxySettings useHost:'sixtyfour' port:3128)
        do:[
            reply := HTTPInterface get:'http://www.exept.de'
        ].


ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Sun, 22 Dec 2024 02:04:47 GMT