Skip to content

Update httpsnippet, add Axios, fetch() and Kotlin OkHttp #540

@philsturgeon

Description

@philsturgeon

Evaluate how used the existing Node JavaScript libraries are (I've never heard of them) and add Axios.

  {
    name: 'Node',
    mode: 'javascript',
    codechoice: 'node',
    libraries: [
      { name: 'Native', librarychoice: 'native' },
      { name: 'Request', librarychoice: 'request' },
      { name: 'Unirest', librarychoice: 'unirest' },
    ],
  },

Axios was added to httpsnippet in Kong/httpsnippet#176 which was released as part of v1.22.0.

I'd also suggest changing the Browser JavaScript targets to include fetch() added in Kong/httpsnippet#128.

  {
    name: 'JavaScript',
    mode: 'javascript',
    codechoice: 'javascript',
    libraries: [
      { name: 'Fetch', librarychoice: 'fetch' },
      { name: 'jQuery', librarychoice: 'jquery' },
      { name: 'XMLHttpRequest', librarychoice: 'xmlhttprequest' },
    ],
  },

Aaaand Kotlin - OkHttp?

Maybe if we've not looked into this already, we could look into getting off our fork, so we don't have more libraries to maintain and bump when we want to add things like this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions