Giter VIP home page Giter VIP logo

library-conga's Issues

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
                                            ∧

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 listener

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

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

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.

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"

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.