Questions tagged [response]

A response is a general term for a message which is sent as an answer for previously made request.

A response is a general term for a message which is sent as an answer for previously made request.

A request/response scheme is present in almost any communication protocol, particularly there message delivery is guaranteed, for example TCP, HTTP, etc.

Further Reading:

5919 questions
1
vote
1 answer

redirect non-www to www on Application_BeginRequest - facing loop

I try to redirect non www to www: protected void Application_BeginRequest(Object sender, EventArgs e) { if (!Request.Url.Host.StartsWith("www")) { var path = Request.Url.Scheme+"://www." + Request.Url.Host +…
1
vote
0 answers

How to handle api pagination in karate framework

Suppose, if there are multiple pages and if the user wants to traverse and validate the response in all the pages, then what is the process of validating the same in the karate framework. Also, if there is any public API available for verifying…
1
vote
4 answers

Is there a less hard-coded alternative to using if (response.status === 201)?

I am using the Fetch API to retrieve some external data for my application. Here is my code: fetch("http://127.0.0.1:8000/dictionary/define", { method: "POST", body: JSON.stringify(values), }) .then(response => { if…
fredperk
  • 737
  • 1
  • 9
  • 22
1
vote
0 answers

HttpFoundation JsonResponse returns Null in PhpUnit test

I have a Laravel 8 app that uses Botman. When I call the endpoint from Postman, I get the correct content with the correct headers. But when I call the endpoint while testing I get empty content and thus the test doesn't pass. The response is…
Raphaël
  • 71
  • 3
1
vote
1 answer

How to create a http response for images in java?

I have been trying to create a simple java web server everything works fine for files such as html or css but I'm unable to send image responses correctly. The problem is obviously with the image data that I'm sending but I'm not sure how to do it…
diode64x
  • 11
  • 4
1
vote
1 answer

jquery ajax response strips html tags

I have a javascript / jquery function which is supposed to replace a row in a table with an "Edit Mode" version of the same row. it fires on the onclick event of a button on the row and a simplified verion of the code would be: function…
alex
  • 1,250
  • 2
  • 12
  • 19
1
vote
1 answer

response is undefined using Axios and Express

I have this simple post method in back-end: router.post('/users', async function(request, response) { try { const userToRegister = request.body; const user = await CreateUserService.execute(userToRegister); return…
RAFAEL DA SILVA
  • 99
  • 2
  • 11
1
vote
2 answers

How to build a simple chart in React based on data from API response

I would like to build a simple chart in React using Nivo library to represent percentage values from data in API response. The data from the response looks like this: https://run.mocky.io/v3/7c46c4ce-09c0-4f95-b4e1-84ae10bd24ab I need to represent…
1
vote
1 answer

Plotting GAMM model results with package gratia

Is there a way to produce plots with gratia that have the y-axis on the response variable scale similar to the scale="response" visreg function? I know scale is already an option for the y-axis in gratia, but just for axis range and not transforming…
Matt
  • 11
  • 1
1
vote
1 answer

JQGrid data is not loading with JSON server response

I'm trying to load data from the jsp response which is a JSON using JQGrid. my index.html