Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8801265
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T00:47:24+00:00 2026-06-14T00:47:24+00:00

I am returning HttpResult from one of the rest service methods using servicestack’s new

  • 0

I am returning HttpResult from one of the rest service methods using servicestack’s new API. Is there a way to get the HttpResult using the JsonServiceClient?

For ex: JSonServiceClient.Send<HttpResult>("DELETE","person", new { PersonID = 30 });

I want to inspect the header information from the httpresult.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T00:47:25+00:00Added an answer on June 14, 2026 at 12:47 am

    There’s no such thing as a HttpResult client response from a ServiceStack web service.

    You use a HttpResult to customize the HTTP Response that’s returned from your service, e.g. Add additional HTTP Headers. But the response body the client sees is still only the Response DTO (if any).

    Use fiddler, wireshark, chome web inspector (if this is an Ajax call) or something like ServiceStack’s Request Logger plugin to inspect the HTTP traffic.

    Invalid use of ServiceStack’s REST Clients

    Also consider using the appropriate Clients REST API like client.Delete(), client.Get() etc instead of overloading the T.Send() method (which is usually a POST).

    Use Typed DTOs in the ServiceClient instead of anonymous types which are not supported.

    Inspecting HTTP Headers using the ServiceStack Service Clients

    ServiceStack’s Service Clients provide Local and Global WebResponse (and Request) filters that you can use to introspect the WebClient’s HttpWebResponse returned for that request, e.g:

    client.ResponseFilter = httpRes => {
       httpRes.Headers.. //do something with returned headers
    };
    client.Delete(new Person { Id = 30, ...});
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am returning XML data from the Yahoo GeoPlanet web service using HttpWebRequest .
When returning from an AJAX query, is there a way to determine whether the
Having a problem with returning results from one particular table in a database. I
Hi every one when returning json data from webservice top tag is adding please
i Have a problem returning multiple rows in one output there are multiple user_roleID's
Instead of returning a common string, is there a way to return classic objects?
I am returning a model from my controller that displays a grid. Works fine.
I have a service returning an array of type BaseItem. BaseItem has N subtypes.
Issue: RODBC (falsely) returning zero rows Situation: I'm using RODBC to connect to a
Possible Duplicate: returning multiple values from a function For example if you want a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.