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

So I'm returning xml from a web service and I get this message in
I am using ASP.NET Web Api and one of the methods is exposed as
When returning from an AJAX query, is there a way to determine whether the
I'm having problems returning a Session value set from mocking using Moq. Using the
I am returning a DataSet from a WCF web service to the client. The
I cannot get the returning data from the server to display on my form
I am returning some data from the database which is entered using many different
I'm returning a promise from a function like this: resultPromise = dgps.utils.save(opportunity, '/api/Opportunity/Save', opportunity.dirtyFlag).then(function
I'm having trouble returning more than one 'tag' from the 'catalog_tag' table when I
I am returning a model from my controller that displays a grid. Works fine.

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.