Giter VIP home page Giter VIP logo

library-conga's Introduction

library-conga

This repository contains files which provide frequently used tools, based on the core communication library for Dyalog APL, known as "Conga".

Installations of Dyalog APL from version 16.0 (June 2017) will contain the files found in the root of the library-conga repository in the folder Library/Conga below the main Dyalog folder.

Documentation

The Documentation folder (not installed with Dyalog APL but available on GitHub) contains documentation for the individual files.

Tests

Tests are based on the v16.0 ]dtest user command. Each subfolder below the Tests contains a set of unit tests, which can be run using for example:

]dtest library-conga/Tests/FTPClient/unit

HttpCommand has moved

HttpCommand has been moved to its own repository. Versions of Dyalog APL from 19.0 will include HttpCommand from this new repository. Documentation for HttpCommand can now be found here.

If you are using a pre-19.0 version of Dyalog and want to upgrade HttpCommand, please see here.

library-conga's People

Contributors

abrudz avatar bpbecker avatar mbaas2 avatar mkromberg avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

library-conga's Issues

Command execution failed

]load library-conga\httpcommand

  • Command Execution Failed: cannot find the file
    "/Users/jenkins/workspace/Dyalog_18.0_OSX_Nightly/SALT/spice/SaltInSpice.dyalo-
    g"

HttpCommand listener

Allow HttpCommand to maintain a "listening" loop for streamed data (e.g. Twitter feed)

HttpCommand.Get does not work in runtimes if not in Dyalog directory

HttpCommand.Get does not work in runtimes if not in Dyalog directory

this is because it needs ws/conga.dws in the current directory where the .exe is

Create a WS with this ⎕LX function lx:

'f'⎕WC'form'
:Trap 0
r←HttpCommand.Get'www.dyalog.com'
'f.e'⎕WC'edit'('text'r.Data)
:Else
'f'⎕WS'bcol' 200 0 0

:EndTrap
⎕DQ'.'

⎕OFF

make a new directory.

copy dyalogrt.exe to it

nothing shows in the edit field until you make a ws subdirectory with conga.dws in it.

Development versions work because they have access to development registry and environment values.

Persistent Connection

Allow for using a persistent connection
Maybe something like
c←⎕NEW HttpCommand
c.Persist←1

Code cannot NOT produce warnings

Have a look at:

:If 1=|args
(h b)U.(CRLF,CRLF)U.splitFirst args
CongaHttpHeader h
CongaHttpBody b
_Type''

CongaHttpHeader wants Type to be ''.

{r}CongaHttpHeader hdr;line;header;chunked;contentLength
add the data from Conga's HTTPHeader event
:Access public
:If _Type''
'Message type expected to be "", but is actually "',(_Type),'"'
:EndIf

But on the next line CongaHttpBody wants Type not to be 'Conga'.

{r}CongaHttpBody bod
add the data from Conga's HTTPBody event
:Access public
:If _Type'Conga'
'Message type expected to be "Conga", but is actually "',(_Type),'"'
:EndIf

How can that be?

Duplicate cookie names

May have a conflict with cookies with same name, especially if they come in in trailer when chunked

HTTPCommand stopped working with headers as nested vector

     HttpCommand.Version
┌───────────┬──────┬──────────┐
│HttpCommand│2.3.05│2020-04-10│
└───────────┴──────┴──────────┘
      hc←⎕NEW HttpCommand
      hc.Headers←('Authorization' 'token blahblah')('Accept' 'application/vnd.github.v3.raw ')
      hc.URL←'https://api.github.com/repos/Dyalog/library-conga/releases'
      res←hc.Run
LENGTH ERROR: Invalid left argument
firstCaps[0] firstCaps←{1↓{(¯1↓0,'-'=⍵)(819⌶)¨⍵}'-',⍵} ⍝ capitalize first letters e.g. Content-Encoding
                                            ∧

FormData in GET?

Isn't FormData always empty when processing a GET?

argsQueryData
:If 'GET'U.uc Command GET method - all data is passed in querystring
argsFormData
:EndIf
params(0args)'?',U.UrlEncode args

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.